iis8 默认不支持svc解决方法
2015-06-07 15:44
134 查看
最近在IIS8中发布WCF服务应用时,发现IIS8不支持WCF服务svc请求,后来发现IIS8缺少对WCF服务的Managed Handler,按照以下步骤添加后,IIS8即支持WCF服务。
1. 首先添加MIME类型 扩展名“.svc”,MIME类型 “application/octet-stream”
![](http://images0.cnblogs.com/blog2015/571457/201506/071439087549154.png)
2. 然后在“Handler Mappings”中添加Managed Handler
![](http://images0.cnblogs.com/blog2015/571457/201506/071453383632359.png)
请求路径: *.svc
类型: System.ServiceModel.Activation.HttpHandler
名称: svc-Integrated
![](http://images0.cnblogs.com/blog2015/571457/201506/071454469887424.png)
完成后,IIS8即可支持WCF服务svc请求。
第二种方法
http://stackoverflow.com/questions/11116134/wcf-on-iis8-svc-handler-mapping-doesnt-work
Hit
Select
Select
Expand
Expand
Enable
第二种方法没有试,应该可以的.
1. 首先添加MIME类型 扩展名“.svc”,MIME类型 “application/octet-stream”
![](http://images0.cnblogs.com/blog2015/571457/201506/071439087549154.png)
2. 然后在“Handler Mappings”中添加Managed Handler
![](http://images0.cnblogs.com/blog2015/571457/201506/071453383632359.png)
请求路径: *.svc
类型: System.ServiceModel.Activation.HttpHandler
名称: svc-Integrated
![](http://images0.cnblogs.com/blog2015/571457/201506/071454469887424.png)
完成后,IIS8即可支持WCF服务svc请求。
第二种方法
http://stackoverflow.com/questions/11116134/wcf-on-iis8-svc-handler-mapping-doesnt-work
Hit
Windows+X
Select
Programs and Features(first item on list)
Select
Turn Windows Features on or offon the left
Expand
.NET Framework 4.5 Advanced Services
Expand
WCF Services
Enable
HTTP Activation
第二种方法没有试,应该可以的.
相关文章推荐
- redis安装及常用命令
- c++在string类源
- 1.1 Core JavaScript(continued)
- LeetCode题解(20)--Valid Parentheses
- 东方之星
- 双树 节点 C# net Ztree linqtosql 源码
- akoj-1076-Encoding
- 【整理】二叉树概念以及代码实现
- Objective C 中的nil,Nil,NULL和NSNull理解
- XTHML
- 十三周——输入输出流——项目— 小玩文件(1)
- linux入门基础——linux网络配置
- accept功能
- Microsoft Visual C++ Runtime Library Runtime Error解决的方式
- 在mfc中使用cef
- HTML
- 引起获取网络抛异常的情况
- Valid Parentheses
- bzoj 3673 可持久化并查集
- struts2 的 result type详解