Login Failed for user Domain\MachineName$ on IIS 7.5 with an ApplicationPoolIdentity

南笙酒味 提交于 2019-12-11 06:09:29

问题


Actually I was expecting a SqlExcpetion like Login Failed for user IIS AppPool\My AppPool Name exception instead of Domain\MachineName$.

I've created an Application Pool that is using

  • Manged Pipeline Mode : Integrated
  • Identity : ApplicationPoolIdentity

This AppPool is assigned to the Web Application (MVC3) in question. But somehow it seems that the WebApp is using somehow the NetworkService for the connection to SqlServer.

Any Idea why or what I should change?


回答1:


Turns out that I forgot to change the connection string to SqlServer.

So they where pointing to another machine in the Network, as IIS AppPool\My AppPool Name is only valid on the local Server, IIS takes automatically the Network Service to access stuff in the Network, that's why it was showing Domain\MachineName$.



来源:https://stackoverflow.com/questions/7553981/login-failed-for-user-domain-machinename-on-iis-7-5-with-an-applicationpooliden

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