简体   繁体   中英

Failed to call IIS-hosted WCF

I'm trying to host my WCF service in IIS for internal testing.

I have no problem to add and consume the service in testing website inside the same PC as IIS. I also able to add the service into my testing website in another PC (LAN connection).

But the problem is that when I try to consume the service in testing website in another PC inside another PC (LAN connected), the service always keep saying that it failed to response.

I do hope anyone here who have experienced this kind of situation can share your precious experience. Thanks.

ps: sorry for my broken english.

Here's my 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>

Best regards, Jason

If you could post the format of the URL to your service that would help too as well as error you are getting.

For a quick and general connectivity issue I typically resort to Fiddler (http://www.fiddler2.com/fiddler2/). This tool shows the traffic between client and server. The next step would be turning on WCF diagnostics but before that make sure that you can: ping the target server, that you can navigate via URL to the service end point, and use fiddler for further connectivity debugging assistance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM