While running my ASP.NET Application, I am receiving full trust level error

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 2008 Shared server and your application requires Full Trust Level. Please note that we do not allow ASP.NET Full Trust hosting on our Windows 2008 Shared plans.

Solution


To fix this error, you will need to change your application trust level to Medium from Full. For doing so, you will need to compile your script in medium trust level and upload it again on the server. Changing the trust level in web.config file will now work.

If Full Trust Level is essentilal to run your application, you can switch to our Windows 2012 Shared Hosting. In Windows 2012 Shared Hosting, we allow Full Trust Level hosting with dedicated application pool. To switch your web hosting from Windows 2008 Shared to 2012 Shared, you can submit the ticket from client area.

  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

Microsoft OLE DB Provider for ODBC Drivers error '80040e10' [Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1

This error occurs because the field name that you used in the query syntax does not exist. Often...

Operation must use an updateable query Microsoft OLE DB Provider for ODBC Drivers error '80004005' .[Microsoft] [ODBC Microsoft Access Driver]

This error usually occurs when you try to insert or update data in MS Access database i.e. you do...

Error: Fatal error: Allowed memory size of xxxxxx bytes exhausted

Sometimes you may receive the following error message while accessing your PHP page: Error :...

500 Internal Server Error

In Windows hosting, sometimes you may get error message 500 Internal Server Error for scripts...

How to fix HTTP Error 503. The service is unavailable in Windows?

Error message HTTP Error 503. The service is unavailable. Cause In Windows hosting,...