This question is locked. New answers and comments are not allowed.
I've got a web project (local) that refuses to run on IIS using OA...works fine with the Visual Studio embedded webserver, but try and load off IIS gives me this
Server Error in '/' Application.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Source File: c:\temp\RTOModelWeb\App_Code\ObjectScopeProvider1.cs Line: 144
Stack Trace:
Server Error in '/' Application.
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.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
Line 142: }
Line 143: return scope;
Line 144: }
Line 145: }
|
Source File: c:\temp\RTOModelWeb\App_Code\ObjectScopeProvider1.cs Line: 144
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] ObjectScopeProvider1.GetPerRequestScope(HttpContext context) in c:\temp\RTOModelWeb\App_Code\ObjectScopeProvider1.cs:144 RTOHelper.get_Scope() in c:\temp\RTOModelWeb\App_Code\RTOHelper.cs:13 WorkFlowDesigner.Page_UnLoad(Object sender, EventArgs e) in c:\temp\RTOModelWeb\WorkFlowDesigner.aspx.cs:43 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 System.Web.UI.Control.OnUnload(EventArgs e) +11026878 System.Web.UI.Control.UnloadRecursive(Boolean dispose) +11026942 System.Web.UI.Page.UnloadRecursive(Boolean dispose) +24 System.Web.UI.Page.ProcessRequestCleanup() +55 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11041050 System.Web.UI.Page.ProcessRequest() +91 System.Web.UI.Page.ProcessRequest(HttpContext context) +240 ASP.workflowdesigner_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\8e1af0b4\4e2d54fd\App_Web_pwzop6xs.0.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171 |