最近在做Silverlight,Windows Phone应用移植到Windows 8平台,在IIS8中测试一些传统WCF服务应用,发现IIS8不支持WCF服务svc请求,后来发现IIS8缺少对WCF服务的Managed Handler,按照以下步骤添加后,IIS8即支持WCF服务。
1. 首先添加MIME类型 扩展名“.svc”,MIME类型 “application/octet-stream”
2. 然后在“Handler Mappings”中添加Managed Handler,
![](http://www.silverlightchina.net/uploads/allimg/121109/1_121109155425_1.jpg)
![](http://www.silverlightchina.net/uploads/allimg/121109/1_121109155515_1.jpg)
Request path: *.svc
Type: System.ServiceModel.Activation.HttpHandler
Name: svc-Integrated
![](http://www.silverlightchina.net/uploads/allimg/121109/1_121109155703_1.jpg)
![](http://www.silverlightchina.net/uploads/allimg/121109/1_121109160057_1.jpg)
完成后,IIS8即可支持WCF服务svc请求。
转载于:http://blog.csdn.net/jv9/article/details/8176955