WCF不在IIS 6.0下运行 [英] WCF not running under IIS 6.0

查看:218
本文介绍了WCF不在IIS 6.0下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试让我的WCF服务在IIS 6下运行。

Trying to get my WCF service running under IIS 6.

我创建了 .svc code> aspnet_isapi.dll 根据以下映射: http://msdn.microsoft.com/en-us/library/ms752241.aspx

I have created the .svc and aspnet_isapi.dll mapping according to: http://msdn.microsoft.com/en-us/library/ms752241.aspx

查看 Server1时。 svc 页面,我得到一个404。

When viewing the Server1.svc page, I am getting a 404.

我已经测试了一个简单的.aspx页面, .svc扩展名不是。

I have tested the site with a simple .aspx page to ensure the URL is working, but again the .svc extension isn't.

我安装了.NET 3.5 SP1,我的 web.config 引用3.5程序集,我没有得到一个错误,当查看.aspx页面,所以它正在挑选这些程序集很好,大概。

I have .NET 3.5 SP1 installed, my web.config is referencing 3.5 assemblies, and I don't get an error when viewing a .aspx page so it is picking those assemblies up fine, presumably.

什么可能是错误? / p>

What could be wrong?

推荐答案

很可能.svc扩展没有在IIS下注册为由ASP.NET(WCF)处理。

More than likely the .svc extension is not registered under IIS as being handled by ASP.NET (WCF).

尝试这两个步骤(如果需要,用Framework64替换Framework):

Try these 2 steps (replace Framework with Framework64 if it's needed):

转到:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\

,然后运行:

aspnet_regiis -i

转到:
C:\Windows \Microsoft.NET\Framework\v3 .0 \ Windows Communication Foundation

Go to: C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation

,然后运行:

ServiceModelReg.exe -i

这篇关于WCF不在IIS 6.0下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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