WCF上IIS8; * .SVC处理程序映射不起作用 [英] WCF on IIS8; *.svc handler mapping doesn't work
本文介绍了WCF上IIS8; * .SVC处理程序映射不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图让IIS8运行WCF服务于2012年建立8400。
I'm trying to get a wcf service running in IIS8 on 2012 build 8400.
在安装Web角色的WCF的东西(3.51下),不能像在2008年发现的。
When installing the web role the wcf stuff (under 3.51) wasn't to be found like in 2008.
在安装了SVC处理程序映射不见了,所以我做了:
When installed the svc handler mapping was missing, so i did a:
%windir%\Microsoft.NET\Framework\v3.0\WindowsCommunication Foundation\ServiceModelReg.exe –i
现在的处理程序映射是有的,但我仍然可以:
Now the handler mapping is there, but I still get:
The resource you are looking for does not have a handler associated with it.
(我删除静态文件处理程序。)
(I removed the static file handler.)
为了使用模拟该网站使用的是经典的管道。
The site is using the classic pipeline in order to use impersonation.
推荐答案
更具体地说:
- 运行
服务器管理器
(在任务栏和开始菜单) - 选择服务器管理(可能是本地服务器)
- 向下滚动到
角色和功能
一节。 - 选择
添加角色或功能
从任务下拉 - 在在页面列表
添加角色或功能向导
对话框中,单击下调至功能上左侧。
- 展开
网络3.5
或网络4.5
,这取决于您所安装的。 (你可以备份到角色
屏添加,如果你不具备的。 - 在
WCF服务
,检查HTTP-激活
框。如果你知道你需要他们(TCP,命名管道等),还可以添加非HTTP类型。 - 点击
安装
按钮。
- Run
Server Manager
(on task bar and start menu) - Choose the server to administer (probably local server)
- Scroll down to "
Roles and Features
" section. - Choose "
Add Role or Feature
" from Tasks drop down - On "
Add Role or Feature Wizard
" dialog, click down to "Features
" in list of pages on the left. - Expand
".Net 3.5"
or".Net 4.5"
, depending on what you have installed. (you can go back up to "roles
" screen to add if you don't have. - Under "
WCF Services
", check the box for "HTTP-Activation
". You can also add non-http types if you know you need them (tcp, named pipes, etc). - Click
"Install"
Button.
这篇关于WCF上IIS8; * .SVC处理程序映射不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文