One of the common problem in deployment of ASP.NET 2.0 applications is permissions. Developers setup IIS to run there application pool with admin priveleges and applications run fine. But when you deploy it in a production environment where the Application Pool runs in a limited permission account like “Network Service” things start to break – especially if the code accesses resources like EventLog. Today I got stuck in one such situation while deploying an application and I came across this good MSDN Article that helped me out.

A related MSDN Article talks about how to use Medium Trust in ASP.NET 2.0 as a best practise. Recommended read for every ASP.NET developer!

Categorized in:

Tagged in: