Windows 服务中的 WCF 主机:无法获取 wsdl

发布于 2024-08-28 12:25:29 字数 358 浏览 3 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不甘平庸 2024-09-04 12:25:29

抱歉各位,今天是星期一!我找到了解决方案,就在我眼前!

这里的帖子救救我吧!

这个问题可以结束了!

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文