Rank: Newbie Groups: Member
Joined: 4/2/2009 Posts: 4
|
Hi,
I am trying to use the FileExplorer in a shared hosting environment but get the following exception:
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.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +59 System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118 System.Reflection.Assembly.GetName(Boolean copiedName) +59 System.Reflection.Assembly.GetName() +6 EO.Web.Internal.cw..cctor() +110
I have asked the hosting company to set write permissions on the Root folder and sub-folders but this hasn't helped.
How do I fix this problem?
Thanks, Scott.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You will need to ask your hosting company to fix this. It's not a NT security issue. It's a .NET Code Access Security issue. They will need to change their .NET security policy, instead of NT permissions for you.
Thanks!
|