远程 Web 服务上出现 404.0 错误,但 IIS 上出现本地错误
我已经编写了一个 Web 服务,并正在尝试发布到生产服务器。奇怪的是,当我将它推到服务器上并为该服务设置虚拟文件夹时,它在从互联网访问时不想工作!
如果我打开 IIS 6 admin,查看该文件夹,右键单击 .asmx 文件并选择浏览;它可以在 Internet Explorer 中正常打开!如果我将 URL 更改为公共 URL 名称,它可以正常工作,但仅限于服务器。如果我尝试从桌面访问它,则会收到 404.0 错误!我知道该文件在那里,它在服务器上的本地主机上运行良好!
我要拔头发了!有什么建议吗?
I have a web service I have written and am trying to publish to a production server. The strange thing is, when I pushed it on the server and set up a virtual folder for the service, it doesn't want to work when accessed from the Internet!
If I open up IIS 6 admin, look at the folder, right click on the .asmx file and select browse; it opens in Internet Explorer fine! If i change the URL to the public URL name, it works ok, but only on the server. If I try to access it from my desktop, I get a 404.0 error! I know the file is there, it works fine on localhost on the server!
I'm pulling my hair out! Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说这是一个愚蠢的错误。当我部署 Web 服务时,我将其放在服务器上它自己的文件夹中。但我没有检查该文件夹的权限。在本地主机上访问它时,我的登录用户具有管理权限并且可以看到该文件。远程地,作为匿名的,它不能。一旦我将权限与 wwwroot 的权限相匹配,它就可以正常工作。
It was a stupid error on my part. When i deployed the web service, i put it in it's own folder on the server. I didn't check permissions on the folder though. When accessing it on localhost, my logged in user had administrative privileges and could see the file. Remotely, as anonymous, it couldn't. Once i matched permissions to what wwwroot had, it worked fine.