[Mono-list] WCF client -- unexpected timeout
jacek
jacek.cala at gmail.com
Fri May 14 19:21:17 EDT 2010
Hi All,
Using wcf client app with mono I experience unexpected timeouts after it
calls a service. It looks like the app does not take into account timeout
settings from the .exe.config file. The same app with the same .exe.config
works fine under Windows.
Here is the exception I get:
--------------------------------------------------
Exception in async operation: System.TimeoutException: The operation has
timed-out.
at
System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd
() [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest
(IAsyncResult result) [0x00000] in <filename unknown>:0 at
System.ServiceModel.Channels.HttpRequestChannel.Request
(System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000]
in <filename unknown>:0
at System.ServiceModel.ClientRuntimeChannel.Request
(System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in
<filename unknown>:0
at System.ServiceModel.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription od, System.Object[]
parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.ClientRuntimeChannel.Process
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00000] in <filename unknown>:0
--------------------------------------------------
And this is excerpt from the config file:
--------------------------------------------------
<basicHttpBinding>
<binding name="BasicHttpBinding_IAgent" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None"
proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName"
algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
--------------------------------------------------
I use the latest mono 2.6.4.
Any help appreciated.
Regards,
Jacek
--
View this message in context: http://mono.1490590.n4.nabble.com/WCF-client-unexpected-timeout-tp2217370p2217370.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list