What Windows account does ASP.NET 4 run on?

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

When I deploy my MVC application in IIS 7, it does not write exceptions to the log file. I went into the source when the application was deployed and found that it does not have the rights / necessary permissions to write to the log file.

So, I want to give more privileges to the account in which the application is running.

+3
source share
3 answers

Switch to:

IIS> Application Pools> (right-click) Application Pool> Preferences ...> (in the process model).

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

+4
source

It depends on which way you are going to write. For example, if you are deploying your asp.net website, use the default Network Service account, you must give it the correct permission.

To get the account that you are currently using, you can verify the identity of the application pool for your site.

+1
source

Using IIS 8.5?

ApplicationPoolIdentity is a member of the IIS_IUSRS group. If you need to give the application direct access to the file system, set the ACL for IIS_IUSRS.

However , browsing the file system on the Internet requires very careful consideration.

+1
source

Source: https://habr.com/ru/post/1300090/


All Articles