I am trying to deploy an ASP.NET application on Windows Server 2012 (with IIS 8) but I'm getting an http error 503 when using the ApplicationPoolIdentity or a custom account, but not with NetworkService.
In order to narrow down the problem I set up a simple one page html application under the Default Web Site. This exhibits the same behaviour. I've given the custom account and the application pool identity full permissions on the application folder(s).
I've also checked the Windows event log and get this error: the worker process failed to initialize correctly the data is the error. 05000780. The application pool is stopped each time I try to browse the site (using applicationpoolidentity).