当服务托管在 Azure 中时,地址不正确

发布于 2024-12-20 14:41:52 字数 524 浏览 0 评论 0原文

我在 Azure 上托管了一个 WCF 服务,网址为 http://voraservice.cloudapp.net/MyPushService.svc。问题是当我通过客户端连接时,它给我在给定地址找不到端点:

http://rd00155d3425e0/MyPushService.svc

我不知道这个随机服务器名称是如何来到这里的,我正在尝试几个小时后就弄清楚如何删除这个随机服务器名称并将 WCF 的实际位置托管在云上。感谢任何指向解决方案的指示!

更新:我看到了这篇知识库文章 - http://support.microsoft.com /kb/971842/ 但是当我尝试更新Win7时,它说更新不适用于我的电脑。

I have hosted a WCF service on Azure at http://voraservice.cloudapp.net/MyPushService.svc. The problem is when I connect through client, it gives me that no endpoint found at the given address:

http://rd00155d3425e0/MyPushService.svc

I dont know how this random servername came here and am trying to figure out since few hours how to remove this random server name and put the actual location of the WCF hosted on the cloud. Any pointers to solutions are appretiated!

Update: I saw this KB article - http://support.microsoft.com/kb/971842/
But when I try to update for Win7 its says hte update is not for my computer.

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

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

发布评论

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

评论(2

〆凄凉。 2024-12-27 14:41:52

最初我被重定向到此知识库 - http://support.microsoft.com/kb/971842/ 但这对我的 Windows 7 机器有帮助。

最后,我通过在 serviceBehaviors 标记内添加 useRequestHeadersForMetadataAddress 标记来解决此问题。

<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
            <behavior name="ShoutboxWebRole.ShoutsBehavior">
                <serviceMetadata httpGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="false"/>
                <useRequestHeadersForMetadataAddress/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <services>
        ...
    </services>
</system.serviceModel>

Initially I was redirected to this KB - http://support.microsoft.com/kb/971842/ but this dint help me on my Windows 7 machine.

Finally I was able to resolve this by adding useRequestHeadersForMetadataAddress tag inside serviceBehaviors tag.

<system.serviceModel>
    <behaviors>
        <serviceBehaviors>
            <behavior name="ShoutboxWebRole.ShoutsBehavior">
                <serviceMetadata httpGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="false"/>
                <useRequestHeadersForMetadataAddress/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <services>
        ...
    </services>
</system.serviceModel>
人│生佛魔见 2024-12-27 14:41:52

可能听起来像手动指令,但请检查使用应用程序的配置。通常它指向错误的方向。这是这篇博客文章中讨论的类似问题 http:// junooni.wordpress.com/tag/azure-in Correct-address-no-endpoint-listening/

祝一切顺利。

May sound like a manual instruction, but please check the config of consuming application. Often it is pointing to wrong direction. Here is a similar problem discussed in this blog post http://junooni.wordpress.com/tag/azure-incorrect-address-no-endpoint-listening/

All the best.

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