What Windows account does an ASP.NET 4 application run under?

asp.net, asp.net-mvc, iis, iis-7.5, windows

Solution

Go to:

IIS > Application Pools > (right-click) the Application Pool > Advance Settings... > (Under Process Model) Identity.

You can change it if you want. It should be ApplicationPoolIdentity.

Problem

What Windows user account does an ASP.NET MVC 4 app run under? When I deploy my MVC app to IIS 7, it isn't writing exceptions to the log file. I stepped into the source while the application was deployed and found that it didn't have rights/the required privileges to write to the log file. So, I want to grant more privileges to the account that the app is running under.

Original source