Pages

Thursday, December 6, 2012

How to fix "An unhandled Microsoft.NET Framework exception occured in w3wp.exe"

Change the ApplicationPoolIdentity of the application pool for your project to an account such as Local System.

How to disable session in ASP.NET MVC?

Two levels:
Application level is in web.config
<sessionState mode="Off" />

Controller level
[SessionState(SessionStateBehaviour.Disabled)]
public class MyController : Controller
{}