ASP.NET 4应用程序在哪个Windows帐户下运行? [英] What Windows account does an ASP.NET 4 application run under?
问题描述
运行ASP.NET MVC 4应用程序的Windows用户帐户是什么?
What Windows user account does an ASP.NET MVC 4 app run under?
当我将MVC应用程序部署到IIS 7时,它不会写异常日志文件。我在部署应用程序时进入源代码,发现它没有权限/写入日志文件所需的权限。
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.
推荐答案
转到:
IIS>应用程序池>(右键单击)应用程序池>高级设置...>(在处理模型下)标识。
IIS > Application Pools > (right-click) the Application Pool > Advance Settings... > (Under Process Model) Identity.
您可以如果你想改变它。它应该是ApplicationPoolIdentity。
You can change it if you want. It should be ApplicationPoolIdentity.
这篇关于ASP.NET 4应用程序在哪个Windows帐户下运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!