default for hosting companies as recommended by Microsoft.  Code  in Medium Trust applications can read and write its own application  directories and can interact with SQL Server’s databases. Medium trust  is the recommended setting for a shared server because it allows  connections to SQL Server databases and restricts all other permissions  to the application root structure. 
Medium Trust Summary is available directly from Microsoft’s website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000020.asp
 
Medium Trust Summary is available directly from Microsoft’s website: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000020.asp
The main constraints placed on medium trust Web applications are:
- 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 in 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 Path Discovery permissions for your application’s virtual directory hierarchy.
- You are also prevented from calling unmanaged code or from using Enterprise Services.
For additional ASP.NET support and resources we recommend the following web sites:
- ASP.NET: http://www.asp.net/;
- Personal Site Starter Kit: How-To: http://msdn.microsoft.com/vstudio/express/vwd/starterkit/#personal;
- Visual Web Developer Express 2005: http://msdn.microsoft.com/vstudio/express/vwd/learning/default.aspx. source netfirm.com

 
No comments:
Post a Comment