我最近创建了一个WCF服务,在Visual Studio2008的测试中运行良好.但是,当我将项目部署到IIS并try 从IIS访问.svc文件时,我收到以下错误:
"Server Error in '/' Application.The resource cannot be found. "
在过go 的4天里,我一直有这个问题.
在IIS管理器的处理程序映射中,我可以看到两个条目.svc:
svc-Integrated and svc-ISAPI-2.0
我最近创建了一个WCF服务,在Visual Studio2008的测试中运行良好.但是,当我将项目部署到IIS并try 从IIS访问.svc文件时,我收到以下错误:
"Server Error in '/' Application.The resource cannot be found. "
在过go 的4天里,我一直有这个问题.
在IIS管理器的处理程序映射中,我可以看到两个条目.svc:
svc-Integrated and svc-ISAPI-2.0
您需要为SVC扩展添加到ASP的映射.网最简单的方法是从C:\Windows\Microsoft运行ServiceModelReg.exe -i
.NET\Framework\v3.0 Windows通信基础.您可能还需要启用ASP.NET,如果您还没有这样做.
如果您使用的是Windows Server 2012或2016,请按照以下说明操作: