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.
Cause
You might receive this error if your website/application is hosted under our Windows Shared hosting server and your application requires Full Trust Level. Please note that we do not allow ASP.NET Full Trust hosting on our Windows shared hosting plans.
Solution
To fix this error, you will need to change your application trust level to Medium from Full. To do so, you will need to compile your script in medium trust level and upload it again to the server. Changing the trust level in the web.config file will now work.
If a Full Trust Level is essential for running your application, you can switch to our Windows VPS. In Windows VPS, we allow Full Trust Level, and you have the freedom to configure the environment however you need.
If a Full Trust Level is essential for running your application, you can switch to our Windows VPS. In Windows VPS, we allow Full Trust Level, and you have the freedom to configure the environment however you need.
