HTTP 错误 404.3 - 未找到"在 Windows Server 2008(64 位)上浏览 wcf 服务时 [英] HTTP Error 404.3 - Not Found" while browsing wcf service on Windows Server 2008(64bit)

查看:34
本文介绍了HTTP 错误 404.3 - 未找到"在 Windows Server 2008(64 位)上浏览 wcf 服务时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于 .Net Framework 3.5 sp1 并托管在 Windows Server 2008(64 位)上的应用程序.

I am developing an application based on .Net Framework 3.5 sp1 and hosted on windows server 2008(64bit).

在本地浏览 wcf 服务 (.svc) 时,一切正常,但在使用完整域 URL 浏览时,出现错误.

While browsing wcf service (.svc) locally every things is ok but while browsing with full domain URL, it got an error.

本地地址是这样的:http://localhost/MyService.svc

local address is like this: http://localhost/MyService.svc

和域地址是这样的:http://MySite.ir/MyService.svc

and domain address is like this: http://MySite.ir/MyService.svc

顺便说一下,页面 (.aspx) 和其他文件在本地主机和域地址上都能正常工作.

by the way pages (.aspx) and other files work correctly both on localhost and with domain address.

任何想法将不胜感激

这里是详细的错误:

HTTP 错误 404.3 - 未找到

由于扩展程序配置,您请求的页面无法提供.如果页面是脚本,则添加处理程序.如果应该下载文件,请添加 MIME 映射.详细的错误信息

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map. Detailed Error Information

模块:StaticFileModule

通知:ExecuteRequestHandler

处理程序:静态文件

错误代码:0x80070032

请求的 URL:http://MySite.ir:80/MyService.svc

Requested URL: http://MySite.ir:80/MyService.svc

物理路径:D:\inetpub\vhosts\MySite.ir\httpdocs\MyService.svc

登录方式:匿名

登录用户匿名

推荐答案

好的,答案在这里:

转到处理程序映射 |添加处理程序管理器 --> 然后添加以下信息

Go to Handler Mappings | Add Handler Manager --> And then add below information

请求路径:*.svc

类型:System.ServiceModel.Activation.HttpHandler、System.ServiceModel、Version=3.0.0.0、Culture=neutral、PublicKeyToken=b77a5c561934e089

名称:svc-Integrated

这篇关于HTTP 错误 404.3 - 未找到"在 Windows Server 2008(64 位)上浏览 wcf 服务时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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