O
Ondrej Valenta
Hi,
is there any way how to go through this Security exception when using GetCompiledPageInstance method in Medium trust app level (webhosting environment)? Where is the real problem? I mean why application has to be in Full trust?
I'm using that method because RewritePath has serious problem - is not changing server variables - and because is the best way how to solve SEO friendly urls.
Please answer as soon as possible
BR,
Ondrej Valenta
Web Developer and Microsoft Fan ;-)
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=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Source Error:
Line 75: }
Line 76:
Line 77: return PageParser.GetCompiledPageInstance("/index.aspx",context.Server.MapPath("/index.aspx"),context);
Line 78: // TODO: Add RewriteUrlHandler.GetHandler implementation
Line 79: return null;
is there any way how to go through this Security exception when using GetCompiledPageInstance method in Medium trust app level (webhosting environment)? Where is the real problem? I mean why application has to be in Full trust?
I'm using that method because RewritePath has serious problem - is not changing server variables - and because is the best way how to solve SEO friendly urls.
Please answer as soon as possible
BR,
Ondrej Valenta
Web Developer and Microsoft Fan ;-)
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=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Source Error:
Line 75: }
Line 76:
Line 77: return PageParser.GetCompiledPageInstance("/index.aspx",context.Server.MapPath("/index.aspx"),context);
Line 78: // TODO: Add RewriteUrlHandler.GetHandler implementation
Line 79: return null;