I have an ASP.NET framework 4.0 web application. It runs perfectly fine on my local. I publish it out to our server that runs IIS 7.5. When I try to login to the app running on the server, it postbacks, but leaves me right back at the login page. No error message or anything.
I check the Event Viewer Application log and it gives an Info message:
Event code: 4005
Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid.
By default new IIS7.5 Applications run under the ApplicationPoolIdentity virtual account. I've used ACL to give the app's ApplicationPoolIdentity (user "IIS AppPool\myapppool") permissions on the folder directory of the web application. I also change the Anonymous Authentication Credentials to use the Application pool identity.
If I change the Application Pool to run as NetworkService, I'm able to login.
What have I missed? Why would it run fine under the NetworkService (as the Process Model Identity), but not for ApplicationPoolIdentity ?