我已创建WCF application
,然后hosted on IIS server (not my local IIS). IIS running on Windows 2012 Server
我可以在服务器上浏览它,它会显示我的服务合约页面。
http://localhost:4567/DummyService/Service1.svc
然而,当我在不同的机器上浏览它时,它会超时消息
Url = http://{server ip address}:4567/DummyService/Service1.svc
无法访问该网站。
不确定原因?
这是我在服务器上的web.config
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>