iis8 默认不支持svc解决方法

最近在IIS8中发布WCF服务应用时,发现IIS8不支持WCF服务svc请求,后来发现IIS8缺少对WCF服务的Managed Handler,按照以下步骤添加后,IIS8即支持WCF服务。

1. 首先添加MIME类型 扩展名“.svc”,MIME类型 “application/octet-stream”

2. 然后在“Handler Mappings”中添加Managed Handler

请求路径: *.svc

类型: System.ServiceModel.Activation.HttpHandler
名称: svc-Integrated
完成后,IIS8即可支持WCF服务svc请求。
 
第二种方法
 
  • Hit Windows+X
  • Select Programs and Features (first item on list)
  • Select Turn Windows Features on or off on the left
  • Expand .NET Framework 4.5 Advanced Services
  • Expand WCF Services
  • Enable HTTP Activation
第二种方法没有试,应该可以的.
原文地址:https://www.cnblogs.com/wz122889488/p/4558537.html