IIS 7 not recognizing svc file

后端 未结 4 1005
天命终不由人
天命终不由人 2020-12-24 15:03

I\'m trying to publish a webservice using WCF on IIS7.

I\'ve created a Site for this project, and I created an Application too as MSDN suggested. I can open html fil

4条回答
  •  死守一世寂寞
    2020-12-24 15:32

    It happens if IIS is installed after .NET Framework and Visual Studio, so it is necessary to register ASP.Net. If to install IIS at first, there will be no such problems.

    But the solution is simple: open Visual Studio Command Promt and type this command

    aspnet_regiis.exe -i
    

    Here is a link with more detailed information about this command and its parameters.

提交回复
热议问题