IIS8 上的 WCF;*.svc 处理程序映射不起作用 [英] WCF on IIS8; *.svc handler mapping doesn't work

查看:25
本文介绍了IIS8 上的 WCF;*.svc 处理程序映射不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows Server 2012 build 8400 上的 IIS8 中运行 WCF 服务.

I'm trying to get a WCF service running in IIS8 on Windows Server 2012 build 8400.

在安装 Web 角色时,WCF 内容(低于 3.51)在 Windows Server 2008 中找不到.

When installing the web role the WCF stuff (under 3.51) wasn't to be found like in Windows Server 2008.

安装时缺少 svc 处理程序映射,所以我做了一个:

When installed the svc handler mapping was missing, so i did a:

%windir%Microsoft.NETFrameworkv3.0WindowsCommunication FoundationServiceModelReg.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.

推荐答案

更具体地说:

  1. 运行服务器管理器(在任务栏和开始菜单上)
  2. 选择要管理的服务器(可能是本地服务器)
  3. 向下滚动到角色和功能"部分.
  4. 从任务"下拉列表中选择添加角色或功能"
  5. 添加角色或功能向导"对话框中,点击左侧页面列表中的Features".
  6. 展开 ".Net 3.5"".Net 4.5",具体取决于您安装的内容.(如果没有,您可以返回到roles"屏幕进行添加.
  7. WCF 服务"下,选中HTTP-Activation"框.如果您知道需要它们,也可以添加非 http 类型(tcp、命名管道等).
  8. 点击安装"按钮.
  1. Run Server Manager (on task bar and start menu)
  2. Choose the server to administer (probably local server)
  3. Scroll down to "Roles and Features" section.
  4. Choose "Add Role or Feature" from Tasks drop down
  5. On "Add Role or Feature Wizard" dialog, click down to "Features" in list of pages on the left.
  6. 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.
  7. 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).
  8. Click "Install" Button.

这篇关于IIS8 上的 WCF;*.svc 处理程序映射不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆