WCF和客户端访问错误,本地运行正常,上传时出现404
我在服务器上有一个 RESTful 服务,其 url 为 www.webserve.com 我的本地计算机上有一个代理客户端,用于点击并从该服务获取详细信息。该客户端有一个页面名称 default.aspx,该页面发布并点击 www.webserve.com< /strong> 并获取数据。
它工作正常,但一旦我将此客户端上传到同一服务器(IIS)上,名称为 www.proxyclient.com 并用浏览器打开它 default.aspx > 工作正常,但一旦我发布数据并通过它访问服务,它就会给出 404 错误..
我不知道它出了什么问题..可能这是静态 IP 与动态 IP混乱或类似的东西.. 你能帮我一下吗?我需要紧急完成这项工作,
谢谢大家,
好的,找到了解决方案。我的代理客户端正在使用处理程序来处理自定义扩展。我使用 aspnet dll 将该扩展映射到 IIS,它起作用了。感谢大家的支持:)
I have a RESTful service on a server whose url say is www.webserve.com
i have a proxy client on my local machine to hit and get the details from this service.. the client has a page name default.aspx which post and hit the www.webserve.com and get the data.
it works fine but as soon as i upload this client on the same server(IIS) with a name say www.proxyclient.com and open it with my browser the default.aspx works fine but as soon as i post the data and hit the service through it it gives mt a 404 error..
I dont know whats wrong with it.. may be this is the static vs dynamic IP mess or something like that..
can u please help me out. i need to get this done on urgent basis
Thnx guys
Alright got the solution. my proxyclient was using a handler to handle a custom extension. I mapped that extension to IIS with aspnet dll and it worked.. thnx guys for ur support :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,我需要使用 .net Framework dll 将 .svc 注册到我的 IIS ISAPI,
然后它就可以正常工作了:)
Actually I needed to register .svc to my IIS ISAPI with .net framework dll
then it worked fine :)