WCF Service returning “requested service '…' could not be activated” the first time it's accessed from an MVC site

后端 未结 10 2130
遥遥无期
遥遥无期 2021-02-02 09:10

We have a WCF service (with no security) that is being accessed by an MVC3 website.

On the developer machines we have no problems with it but when our TeamCity setup bui

10条回答
  •  自闭症患者
    2021-02-02 09:38

    This error occurs if you install IIS after installing Windows Communication Foundation (WCF). To fix it, simply run the following command:

    "%WINDIR%\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r
    

    Source: IIS Hosted Service Fails

提交回复
热议问题