Silas2
asked on
WCF Timeouts
I can't understand it, I'm working on a VS 2010 project with WCF service. I've got a code binding object in the client end:
binding.ReceiveTimeout = new System.TimeSpan(0, 30, 0);
.SendTimeout = new System.TimeSpan(0, 30, 0);
and the web.config in the server end:<basicHttpBinding>
<binding transferMode="Streamed" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" name="myServericeName" receiveTimeout="0:30:00" sendTimeout="00:30:00">
and yet it still times out after 20seconds????
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is no client config file, I assume that you are setting client in code
In WCF, you must use ChannelFactory to create your client instance as described below:
http://stackoverflow.com/questions/2943148/how-to-programmatically-connect-a-client-to-a-wcf-service
http://msdn.microsoft.com/en-us/library/ms734681(v=vs.100).aspx
Also notice that you are missing the readerQuotas in your client code, check:
http://stackoverflow.com/questions/969479/modify-endpoint-readerquotas-programatically
Note: Your code must define all configuration values defined on the server.
In WCF, you must use ChannelFactory to create your client instance as described below:
http://stackoverflow.com/questions/2943148/how-to-programmatically-connect-a-client-to-a-wcf-service
http://msdn.microsoft.com/en-us/library/ms734681(v=vs.100).aspx
Also notice that you are missing the readerQuotas in your client code, check:
http://stackoverflow.com/questions/969479/modify-endpoint-readerquotas-programatically
Note: Your code must define all configuration values defined on the server.
ASKER
The ChannelFactory's only necessary if you need multiple endpoint listeners isn't it?
ASKER
Open in new window
Open in new window