Redalto Communications Support Site

Question: Running Your Web Applications in Medium Trust

This question relates to category Windows Hosting

Answer:

Our Windows Hosting plans run in Medium Trust mode. Below is an overview of the main constraints that need to be considered when programming your ASP web applications within a Medium Trust environment:

  • OleDbPermission is not available. This means you cannot use the ADO.NET managed OLE DB data provider to access databases. However, you can use the managed SQL Server provider to access SQL Server databases.
  • EventLogPermission is not available. This means you cannot access the Windows event log.
  • ReflectionPermission is not available. This means you cannot use reflection.
  • RegistryPermission is not available. This means you cannot access the registry.
  • WebPermission is restricted. This means your application can only communicate with an address or range of addresses that you define within the <trust> element.
  • FileIOPermission is restricted. This means you can only access files in your application's virtual directory hierarchy. Your application is granted Read, Write, Append, and PathDiscovery permissions for your application's virtual directory hierarchy.

For further reading on Medium Trust you can also view the following Microsoft article; Use Medium Trust in ASP.NET 2.0

Print this Email

  • Author: Redalto Support Team
  • Created on: 16 Feb 2009
  • Views: 1147
  • Last modified: 16 Feb 2009

Can’t Find the Answer You’re Looking For?

If you’ve searched our FAQ database and still can’t find the answer, please submit your question using the below form. We will contact you as soon as possible, and if necessary update the FAQ with the missing information.

Verification