IIS Express Does Not Seem to Be Picking Up Changes to applicationhost.config

断了今生、忘了曾经 提交于 2019-12-01 04:14:55

问题


I followed the accepted answer to this question to try to get my .Net web application to run under a specific set of credentials when debugging locally via the IIS Express server running on my machine, however, I can't seem to get the changes to pick up. Admittedly, I have no idea how to verify what is actually happening, but the behavior I'm seeing leads me to believe that the web app just continues to run under my own Windows credentials. I've stopped the IIS Express processes via System Manager and also restarted my computer, but no dice. Here's what I have in my applicationhost.config file...

<applicationPoolDefaults managedRuntimeLoader="v4.0">
    <processModel userName="username" password="a_strong_pwd" />
</applicationPoolDefaults>

回答1:


Try adding an indentityType="SpecificUser" attribute:

<applicationPoolDefaults managedRuntimeLoader="v4.0">
  <processModel indentityType="SpecificUser" userName="someName" password="a_strong_pwd" />
</applicationPoolDefaults>

The settings are detailed in: https://msdn.microsoft.com/en-us/library/ms689446(v=vs.90).aspx



来源:https://stackoverflow.com/questions/28820491/iis-express-does-not-seem-to-be-picking-up-changes-to-applicationhost-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!