Click here to Skip to main content
15,905,683 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: session problem Pin
RajeevKumarSharma19-May-08 19:39
RajeevKumarSharma19-May-08 19:39 
GeneralRe: session problem Pin
eyeseetee19-May-08 21:20
eyeseetee19-May-08 21:20 
QuestionGridView, Common error message Pin
mpavas19-May-08 12:48
mpavas19-May-08 12:48 
AnswerRe: GridView, Common error message Pin
Christian Graus19-May-08 13:13
protectorChristian Graus19-May-08 13:13 
GeneralRe: GridView, Common error message Pin
mpavas19-May-08 13:28
mpavas19-May-08 13:28 
GeneralRe: GridView, Common error message Pin
keyboard warrior19-May-08 17:16
keyboard warrior19-May-08 17:16 
AnswerRe: GridView, Common error message Pin
mpavas19-May-08 14:38
mpavas19-May-08 14:38 
QuestionThe Security Exception Mystery Pin
gantww19-May-08 9:31
gantww19-May-08 9:31 
Ok,
So I'm taking an open source ASP.NET application and modifying it (I need it to run in partial trust, plus I want to extend it). I also had to tweak it so that it wasn't using the Subsonic build provider. No big deal, I can make my changes and compile. However, the trust issue is causing problems.

I added the following line to my configuration file under System.Web:
<trust level="Medium">Now the application is going belly up with the following exception (the exception does not occur with the trust level left at default):
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65


Anyway, I can't figure out how to get a stack trace. Any ideas?
AnswerRe: The Security Exception Mystery Pin
gantww20-May-08 9:15
gantww20-May-08 9:15 
Questionbarcode generation Pin
rmedo19-May-08 9:27
rmedo19-May-08 9:27 
AnswerRe: barcode generation Pin
Christian Graus19-May-08 10:19
protectorChristian Graus19-May-08 10:19 
QuestionASP.NET Configuration Manager Pin
ctrlnick19-May-08 9:17
ctrlnick19-May-08 9:17 
AnswerRe: ASP.NET Configuration Manager Pin
doWhileSomething19-May-08 14:54
doWhileSomething19-May-08 14:54 
QuestionRemoving rows from a GridView Pin
Fernando A. Gomez F.19-May-08 6:36
Fernando A. Gomez F.19-May-08 6:36 
AnswerRe: Removing rows from a GridView [modified] Pin
keyboard warrior19-May-08 11:14
keyboard warrior19-May-08 11:14 
GeneralRe: Removing rows from a GridView Pin
Fernando A. Gomez F.19-May-08 11:59
Fernando A. Gomez F.19-May-08 11:59 
GeneralRe: Removing rows from a GridView Pin
keyboard warrior19-May-08 12:06
keyboard warrior19-May-08 12:06 
GeneralRe: Removing rows from a GridView Pin
Fernando A. Gomez F.20-May-08 18:57
Fernando A. Gomez F.20-May-08 18:57 
QuestionShow Images directly from database Pin
Blue_Boy19-May-08 5:55
Blue_Boy19-May-08 5:55 
AnswerRe: Show Images directly from database Pin
led mike19-May-08 6:16
led mike19-May-08 6:16 
GeneralRe: Show Images directly from database Pin
Blue_Boy19-May-08 9:09
Blue_Boy19-May-08 9:09 
AnswerRe: Show Images directly from database Pin
Christian Graus19-May-08 10:20
protectorChristian Graus19-May-08 10:20 
GeneralRe: Show Images directly from database Pin
Blue_Boy19-May-08 10:22
Blue_Boy19-May-08 10:22 
GeneralRe: Show Images directly from database Pin
eyeseetee19-May-08 21:17
eyeseetee19-May-08 21:17 
GeneralRe: Show Images directly from database Pin
Blue_Boy19-May-08 22:26
Blue_Boy19-May-08 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.