在服务器上托管时获取 .net Web 服务时出现问题
我托管了一个 Web 服务(http://monocept.net/vlt/html/AutoComplete.asmx)并使用 IIS 7.0 Win server 2008 运行它。在其他 Web 应用程序中,我尝试访问此 Web 服务。当我访问此服务时,它会抛出异常
HTTP 404。您正在查找的资源 for (或其依赖项之一)可以 已被删除,有它的名字 改变了,或者是暂时的 不可用。请查看 以下 URL 并确保它是 拼写正确。
但是当我在本地计算机上运行时,同样的服务工作正常。
I hosted a Web service(http://monocept.net/vlt/html/AutoComplete.asmx) and running it using IIS 7.0 Win server 2008. In other web application I am trying to access this web service. When I am accessing this service it throws exception as
HTTP 404. The resource you are looking
for (or one of its dependencies) could
have been removed, had its name
changed, or is temporarily
unavailable. Please review the
following URL and make sure that it is
spelled correctly.
But this same service working fine when I am running in local machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以直接浏览到你的asmx的url吗?例如http://myremoteserver/app/service.asmx
检查IIS 中是否安装了asp.net 功能。检查应用程序是否分配到正确版本(v2、v4 等)的应用程序池。无论您使用集成管道还是经典管道都没有关系。作为一项服务,您可能希望确保配置了匿名访问。
西蒙
Can you browse to the url of your asmx directly? eg http://myremoteserver/app/service.asmx
Check the asp.net feature is installed in IIS. Check the app is assigned to an app pool of the right version (v2, v4, etc). It shouldn't matter whether you use integrated pipeline or classic. As a service, you probably want to make sure anonymous access is configured.
Simon