A
Amit
In one of .Net 2.0 application, we start getting application server error 500
for ScriptResource.axd after several hrs/days of use. This happens all of
sudden without any warning. The app would work fine for several hrs/days and
then at one moment it would start throwing this error. Saving web.config
solves the problem. The problem would probably be solved by restarting the
app pool also but since we don't have access to the web servers, we use the
saving of web.config as quick fix. Search on the net doesn't get anything
useful. The actual error message from the server is
Server Error in '/' Application.
Cannot perform CAS Asserts in Security Transparent assemblies
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Cannot perform CAS
Asserts in Security Transparent assemblies
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:
[InvalidOperationException: Cannot perform CAS Asserts in Security
Transparent assemblies]
Microsoft.Web.Handlers.ScriptResourceHandler.DecryptString(String s) +37
Microsoft.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +325
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832
for ScriptResource.axd after several hrs/days of use. This happens all of
sudden without any warning. The app would work fine for several hrs/days and
then at one moment it would start throwing this error. Saving web.config
solves the problem. The problem would probably be solved by restarting the
app pool also but since we don't have access to the web servers, we use the
saving of web.config as quick fix. Search on the net doesn't get anything
useful. The actual error message from the server is
Server Error in '/' Application.
Cannot perform CAS Asserts in Security Transparent assemblies
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Cannot perform CAS
Asserts in Security Transparent assemblies
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:
[InvalidOperationException: Cannot perform CAS Asserts in Security
Transparent assemblies]
Microsoft.Web.Handlers.ScriptResourceHandler.DecryptString(String s) +37
Microsoft.Web.Handlers.ScriptResourceHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) +325
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +64
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832