Calling wcf service from Winform the operation has timed out

by ebarcza 4/1/2010 11:47:00 AM

I created a basic WCF service in a C# .NET web site. I was trying to connect to it via a web reference from a Winforms app with no luck. I kept on getting an error message "the operation has timed out"

The fix - use basic binding in the endpoint configuration

EX:
<service behaviorConfiguration="MyBehavior" name="MyNameSpace">
    <endpoint address="basic" binding="basicHttpBinding" contract="MyContract"><BR>
     <identity><BR>
      <dns value="localhost" /><BR>
     </identity><BR>
    </endpoint><BR>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /><BR>
</service>

 
Voila - no more timeout - Give it a swirl!

Tags: , ,

.NET WCF

Comments

5/10/2010 2:06:09 PM

pingback

Pingback from condosencinitas.com

san diego car insurance

condosencinitas.com

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  October 2018  >>
MoTuWeThFrSaSu
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2018

Sign in