Exception when deploying to IIS: Login failed for user 'IIS APPPOOL\DefaultAppPool'

前端 未结 4 1133
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 04:48

I\'m working through some WCF examples in \"Windows Communication Foundation 4 Step By Step\". My resulting application runs fine as long as the service is hosted in casini.

4条回答
  •  执念已碎
    2020-12-29 05:01

    if not exists 
    (select * from sys.server_principals where name='IIS APPPOOL\DefaultAppPool') 
        create login [IIS APPPOOL\DefaultAppPool] from windows;
    

提交回复
热议问题