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

查看:1201
本文介绍了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下),不能像在200​​8年发现的。

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.

推荐答案

更​​具体地说:


  1. 运行服务器管理器(在任务栏和开始菜单)

  2. 选择服务器管理(可能是本地服务器)

  3. 向下滚动到角色和功能一节。

  4. 选择添加角色或功能从任务下拉

  5. 在在页面列表添加角色或功能向导对话框中,单击下调至 功能上左侧。

  6. 展开网络3.5网络4.5,这取决于您所安装的。 (你可以备份到角色屏添加,如果你不具备的。

  7. WCF服务,检查 HTTP-激活框。如果你知道你需要他们(TCP,命名管道等),还可以添加非HTTP类型。

  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.

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

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