Home » Categories » Multiple Categories

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.

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).

 

Custom Trust

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

0 (0)
Article Rating (0 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
How can I connect to my MS SQL 2012 database via SQL Management Studio?
Viewed 1235 times since Tue, Oct 8, 2013
Which versions of the .NET framework are supported?
Viewed 2342 times since Tue, Sep 21, 2010
Hoe dotnetnuke 7.1 installeren op IIS 7.5 webhosting ?
Viewed 500 times since Tue, Oct 8, 2013
Which non-standard ASP components have been installed on the Hostbasket Shared ASP.Net Servers?
Viewed 2246 times since Mon, Nov 9, 2009
Which Connection String can I use for MSSQL on IIS8 (hostedwebfarm) ?
Viewed 544 times since Tue, Dec 3, 2013
How do I recognize ASP/ASP.NET pages?
Viewed 1358 times since Tue, Nov 18, 2008
What is ASP.NET 4.0?
Viewed 2311 times since Tue, Nov 18, 2008
How do I send e-mail from my windows webhosting package using ASP.NET code?
Viewed 2404 times since Tue, Nov 3, 2009
Why is "parent path" not allowed on IIS7? Why do I get an error with disallowed parent path?
Viewed 6525 times since Thu, Jun 16, 2011
What technologies are supported by my IIS8 web hosting?
Viewed 531 times since Tue, Oct 8, 2013