How to configure ASP.NET 2.0 medium trust in your testing environment/server

You may refer to the step below to set Windows 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:


  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Related Articles

Could Not Load Type

SYMPTOMS When you browse to an .aspx page, you may receive one of the following error messages:...

Parser Error Message: The virtual path '/common/footer.ascx' maps to another application, which is not allowed.

Parser Error Description: An error occurred during the parsing of a resource required to service...