Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
we have lan connection,in that network wcf service is hosted on iis from one machine,and i want to consume that wcf service from another machine,for this i am giving ip address of that remote machine which is hosted at iis.but it shows an error of unable to connect remote server...could you pls anybody help me to consume that service or show me examples related my problem..
thank you in advance...
Posted
Comments
Abhinav S 3-Sep-11 6:20am    
Try to make sure you are able to connect to the remote machine before connecting to the web service.

1 solution

Are you able to access your WCF service in Browser from Remote machine?

Also try by changing settings in web.config of your WCF Service as below.

HTML
<service name="MyServiceName">
behaviorConfiguration="MyServiceBehavior"></service>

HTML
<servicebehaviors>
        
    <behavior name="MyServiceBehavior">
               <servicemetadata httpgetenabled="true" />
    </behavior>
        
</servicebehaviors>
 
Share this answer
 
Comments
Abhinav S 3-Sep-11 6:18am    
Good advice. 5.
RaisKazi 3-Sep-11 6:19am    
Thanks Abhinav.
kishore1215 3-Sep-11 6:24am    
sorry,i changed that same as u have given earlier but no result...
RaisKazi 3-Sep-11 6:29am    
Are you able to access any other Web-Application from that machine remotely? If not then problem seems to be with your Network.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900