无法调用IIS托管的WCF

时间:2012-01-10 02:19:05

标签: asp.net wcf iis

我正在尝试在IIS中托管我的WCF服务以进行内部测试。

在测试网站中添加和使用服务没有问题 在与IIS相同的PC内部。 我还可以将该服务添加到我的测试网站中 PC(局域网连接)。

问题是当我尝试使用该服务时 测试另一台PC内的网站(局域网连接), 该服务总是说它没有响应。

我希望这里遇到过这种情况的人 可以分享您宝贵的经验。感谢。

p.s:抱歉我的英语不好。

这是我的WCF web.config:

<system.serviceModel>
        <services>
            <service behaviorConfiguration="GeoIPService.ServiceMethodBehavior" name="GeoIPService.ServiceMethod">
                <endpoint address="" binding="wsHttpBinding" contract="GeoIPService.IServiceMethod"/>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="GeoIPService.ServiceMethodBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug includeExceptionDetailInFaults="false"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>

祝你好运, 杰森

1 个答案:

答案 0 :(得分:0)

如果你可以将URL的格式发布到你的服务中,那么这也会有所帮助。

对于快速和一般的连接问题,我通常使用Fiddler(http://www.fiddler2.com/fiddler2/)。此工具显示客户端和服务器之间的流量。下一步是打开WCF诊断,但在此之前确保您可以:ping目标服务器,您可以通过URL导航到服务端点,并使用fiddler进行进一步的连接调试帮助。

相关问题