IIS承载的WCF服务,配置.svc文件页面的MIME类型及处理程序映射


发布IIS承载的WCF服务,在浏览器无法打开svc文件,
需要配置.svc文件页面的MIME类型及处理程序映射,参考:

文件扩展名:.svc
MIME类型:application/octet-stream
IIS 添加处理WCF服务.svc的处理程序映射
1 打开控制面板=》启用或关闭Windows功能=》在WCF服务目录下勾选 HTTP激活,如下图

2 打开IIS,在网站右侧的处理程序映射中,查看服务是否已注册


svc-Integrated-4.0
System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
svc-Integrated
System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

扫一扫加作者微信


版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网