How to configure ASPNET2.0 medium trust in windows premium hosting server Print

  • 61

You may refer to the step below to set HostIcon's Windows premium hosting Server ASP.Net medium trust level.

By default installation :


C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG


1. Create a copy of web_mediumtrust.config and rename it to web_mymediumtrust.config

2. Open the newly copy file web_mymediumtrust.config

Add the following Below the tag :

Note: Please note that this setting was refer to ASP.Net default setting in C
:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG but not your virtual hosting web.config.

Sample Code:

------------------------------











-----------------------------

3. Add the following at tag :

Sample Code:

-----------------------------



class="FileIOPermission"

version="1"

Read="$AppDir$"

Write="$AppDir$"

Append="$AppDir$"

PathDiscovery="$AppDir$"

/>





class="OleDbPermission"

version="1"

Unrestricted="true"

/>





class="OdbcPermission"

version="1"

Unrestricted="true"

/>

--------------------------------

4. Open the web.config file, add at as

5. At the trust level change from Full" originUrl=".*" /> to MyTrust" originUrl=".*" />


Was this answer helpful?

« Back
© HostIcon. All rights reserved. Logo and name is a registered trademark of Space Technologies.