Which .NET Framework Trust levels are allowed?
We support all .NET Framework trust levels: from ’Minimal’ to ’Full’.
In the interest of maintaining security within our shared hosting environment and because Medium Trust is more limited than Full Trust, all web applications are assigned a customized Medium Trust policy by default.
Medium Trust can cause difficulties if you want to use new/modern web technologies, such as MVC, AJAXControlToolkit or CMS packages NopCommerce, Umbraco, etc.
You can therefore override the trust level and decide for yourself which policy should be assigned to your web application.
Because this is a shared environment, some access rights are still limited even when you choose Full Trust.
- No access to Event Logs.
- No access to Service Manager.
- No access to Scheduled Tasks.
- No access to Performance Counters.
- No access to WMI providers.
- No access to other parts of the hard drive (only access to your personal web directory).
The ’Custom Trust’ security level places a number of restrictions on an ASP.NET web application:
- OleDbPermission = unlimited.
This means you can use the ASP.NET ’ADO.NET managed OLE DB data provider’ web application to access MS Access databases. It is also possible to use the ’managed SQL Server provider’ to access SQL Server databases.
- EventLogPermission = not available.
This means that the ASP.NET web application does not have access to the Windows Event Log on the web server.
- ReflectionPermission = not available.
This means that the ASP.NET web application cannot use reflection.
- RegistryPermission = not available.
This means that the ASP.NET web application cannot access the Windows Registry on the web server.
- WebPermission = unlimited.
This means that the ASP.NET web application can communicate with other HTTP addresses, to call an external ASP.NET web service for example.
- FileIOPermission = is limited.
This means that the ASP.NET web application can only access files within the website’s virtual directories.
- SocketPermission = unlimited.
This is used to communicate with the MySQL Connector.
How to set the .NET Framework Trust level yourself