Hi guys, I already configure my app.config to increase the timeout of my wcf during testing.
Here’s the code below
<binding name="updatestocks" sendTimeout ="00:20:00" bypassProxyOnLocal="true" allowCookies="false"
hostNameComparisonMode="Exact" useDefaultWebProxy ="true" transactionFlow="true">
<security mode ="None" />
However, error still exists
Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.
Can anyone help me…I already a search for solution on the web, but sill error exists.
The first thing I usually do with WCF issues is turn on diagnostic tracing
That will create a log that you can look through using SvcTraceViewer. Fromt he looks of it, you are not getting a timed out exception, but rather a missed-match binding or contract error
Didn’t see anything that said Error or Exception?
It seems that it has nothing to do with timeout settings in my app.config, instead with the execution timeout. The other methods completely invoke during testing using WCF client testing, whereas the remaining method does not completely invoked and it will display “Increase the timeout value passed to the call to Request or increase the SendTimeout”, this is because, it retrieves a huge amount of data. Is there’s a way to modify the execution time of WCF test client?
Let me think about that, as I don’t know of any off the top of my head, and I happen to be out of town this weekend so my access to a machine with the necessary tools to play around with it is unavailable. Maybe someone else will have an idea until I can respond back.