0
我正尝试在IIS中托管我的WCF服务以进行内部测试。无法调用IIS托管的WCF
我在测试网站 中添加和使用服务没有问题,它与IIS在同一台PC中。 我还可以在另一台 PC(局域网连接)中将该服务添加到我的测试网站中。
但问题是,当我尝试使用这项服务 测试网站在另一台电脑中另一台PC(LAN连接), 服务始终保持说,它未能响应。
我希望在这里遇到过这种情况的任何人 可以分享您宝贵的经验。谢谢。
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>
最好的问候, 杰森
你能够击中IIS中托管的其他东西吗?就像,如果你只是把一个静态的HTML页面?如果可行,那么你可以打开一个Web浏览器到.aspx页面,并显示默认的“着陆页”?您还应该在您的问题中发布您的WCF配置。 – CodingWithSpike 2012-01-10 02:32:26
它没有在我当前的开发电脑中遇到任何错误。连接问题只发生在我尝试从LAN连接的PC测试网站访问时发生。对不起,我只是编辑了这篇文章,并放入了网页配置。你可以看看。谢谢。 – 2012-01-10 03:08:32