I have uploaded the files to the server (shared hosting from Winhost) - but when accessing the site I get the below error. Any idea what is wrong?
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=4.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.
Peter, glad you got it working, though running in a full trust environment really wouldn't be my recommendation.
The U5 has a permissions checker as part of the installation which can be invoked by manually browsing to the path where it resides - I don't have a U5 instance here right now to check, but if you rummage around under the 'Install' directories (just do a search for those if needs be) you should be able to locate it. I'm not even entirely sure what it will tell you if your permissions fail (or, 'when', considering we know they're wrong when not in full trust), but it should hopefully give some useful indication as to what exactly is restricted, meaning you can ammend the permissions for that object directly based on the requirements of such.
Umbraco 5: Security Exception
I have uploaded the files to the server (shared hosting from Winhost) - but when accessing the site I get the below error. Any idea what is wrong?
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=4.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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
I solved the problem by setting <trust level="Full"/> in web.config
Peter, glad you got it working, though running in a full trust environment really wouldn't be my recommendation.
The U5 has a permissions checker as part of the installation which can be invoked by manually browsing to the path where it resides - I don't have a U5 instance here right now to check, but if you rummage around under the 'Install' directories (just do a search for those if needs be) you should be able to locate it. I'm not even entirely sure what it will tell you if your permissions fail (or, 'when', considering we know they're wrong when not in full trust), but it should hopefully give some useful indication as to what exactly is restricted, meaning you can ammend the permissions for that object directly based on the requirements of such.
is working on a reply...