There are number of posts on this and I have tried many a things by now. But to no avail. Myself a Winforms Developer basically, started working on this Web stuff few days back as my company is taking Web initiatives.
I have a ASP.Net project and I want to host it on local IIS. In
Project properties -> Web
Use Local IIS Server
HTTP Error 503. The service is unavailable.
Enable 32 bit Application
HTTP Error 503. The service is unavailable
protected override void Application_Start(object sender, EventArgs e)
String _path = String.Concat(System.AppDomain.CurrentDomain.RelativeSearchPath, ";",
System.Environment.SetEnvironmentVariable("PATH", _path, EnvironmentVariableTarget.Process);
One possible reason this might happen is that the Application Pool in IIS is configured to run under some custom account and this account either doesn't exist or a wrong password has been provided. Look at the advanced properties of the Application Pool in IIS for which account it uses.
Also the Event Log might contain more information as to why the Application Pool is stopping immediately on the first request.