Web服务错误端点

发布于 2024-10-07 16:49:53 字数 177 浏览 0 评论 0原文

我正在开发一个必须连接到 asmx 页面的项目。

但是,它抛出异常“找不到端点”,但我配置了所有应用程序,在 app.config 中设置了所有端点配置。我尝试连接到本地主机并且它有效。

我也尝试过诸如禁用防火墙之类的操作...

这可能是什么?它必须有一些端口配置吗?

谢谢!

I'm working on a project that must connect to a asmx page.

But, it throws an exception 'Endpoint not found', but I configured all my app, set all the endpoints configurations in app.config. I've tried to connect to localhost and it works.

I've also tried something like disable firewall...

What could it be? Must it have something to port configuration?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

遗忘曾经 2024-10-14 16:49:53

这是已部署的应用程序,还是您在 Visual Studio 中以调试模式运行?在 Visual Studio 调试模式下,您必须设置端点地址以包含当您在 VS 中单击“运行”时 Web 服务启动的任何端口(它应该会在您的通知托盘中弹出)。然后,当您稍后发布项目时,您必须记住将这些端点更改回不包含端口#...这是我能想到的唯一让我过去绊倒的事情。如果不是这样——祝你好运。

Is this a deployed app, or are you running in debug mode from Visual Studio? In visual studio debug mode, you will have to set your endpoint addresses to include whatever port # the webservice starts on when you click "run" in VS (it should popup in your notifications tray). Then when you publish the project later, you will have to remember to change these endpoints back to not include the port #... That's the only thing I can think of that has tripped me up in the past. If that's not it- good luck.

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