[Mono-list] WCF client -- unexpected timeout

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Fri May 14 21:29:54 EDT 2010


Hello,

You wouldn't get solid answer without verifiable code to run, but you
should be able to try trunk version or daily builds instead.

I have added a couple of improvements on the configuration stack after 2.6.

Atsushi Eno

(2010年05月15日 08:21), jacek wrote:
> 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
>   



More information about the Mono-list mailing list