Windows 服务中的 WCF 主机:无法获取 wsdl
我有一个 Windows 服务,它托管带有 basicHTTPBinding 的 WCF 服务。在测试中,一切顺利,当我在 Window Server 2003 上部署 win 服务时,服务正确托管 wcf,我在跟踪中打印出端点,它们是正确的,但是当我使用服务公开的地址请求 wsdl 时(即 < a href="http://mybaseaddress/?wsdl" rel="nofollow noreferrer">http://mybaseaddress/?wsdl) 我收到 dns 错误,我无法获取该页面!
我哪里失败了?我错过了什么吗?如果我使用控制台应用程序托管 wcf,使用相同的配置文件,我可以毫无问题地获取 wsdl!
先感谢您 米歇尔
i've a windows service that hosts a WCF service with basicHTTPBinding. In test everything goes right, when i deploy the win service on a Window Server 2003, service hosts correctly wcf, I print out endpoints in tracing, they're correct, but when i ask for wsdl using the address that service exposed (i.e. http://mybaseaddress/?wsdl) i get a dns error, i cannot get the page!
Where i fail? I miss something? If i host the wcf with a console app, using the same config file, i can get the wsdl without problems!
Thank you in advance
Michele
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
抱歉各位,今天是星期一!我找到了解决方案,就在我眼前!
这里的帖子救救我吧!
这个问题可以结束了!
Sorry guys,it's monday! I've found the solution, was under my eyes!!
Here the post that save me!
This question can be closed!