404 when running .net 4 WCF service on IIS (no svc file)

后端 未结 4 1039
孤街浪徒
孤街浪徒 2020-12-08 08:13

I\'m testing out a REST service in WCF on .net 4 - i.e. no svc file. It works great when running against the VS dev server but when I switch it to run against IIS I get 40

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 08:58

    On IIS 5.1 on my machine, the .svc page was served only when I added HTTP Handler at Web Site level as well as virtual folder level. This should ideally work by inheritance!

    Extention : .svc

    Executable :

    c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll

提交回复
热议问题