Sunday, January 18, 2009

Changing the trust level of a web application

Asp.net (1.1 & 2.0) web applications run under full trust, by default. It means they can access any resources; however, to limit this resource access you need set the trust level.

< level="Full|High|Medium|Low|Minimal"/>


And this is set in system.web section of the web.config file in asp.net web application.

Here is a detailed article from MSDN to elaborate the process of setting trust level, and also Code Access Security.

How To: Use Code Access Security in ASP.NET 2.0

No comments: