title: How to find out which account my ASP.NET code is running under?
body: <p>I am getting an 'Access to the path is denied" error message when running in debug mode. I have tried granting permissions to {MACHINENAME}\ASPNET and to NETWORK SERVICE but this hasn't made any difference. I have also tried &lt; impersonate = true /> using an admin account, this also made no difference. So how do I establish exactly which account is being used?</p>