Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Timeout related Issue in WCF Service with BasicHttpBinding

14 views
Skip to first unread message

Ajit

unread,
Nov 17, 2008, 10:05:00 AM11/17/08
to
Hi,

Platform : .NET 3.0. Visual Studio 2005
We are testing a WCF Service using BasicHttpBinding deployed in IIS in
Win2003 machine.The service method invocation happens in an synchronous
manner from the client side. The method runs fine when the processing time is
less ( say few minutes ). When it takes close to 10 minutes, we get a
message as shown below.

System.ServiceModel.ProtocolException : The content type text/html;
char=utf-8 of the response message doesn’t match the content type of the of
the binding...If using custom encoder, be sure that the
IsContentTypeSupported method property is implemented properly. The first
1024 bytes of the response were ......

....<span><HI> Server Error in ‘/MyWebServiceApplication’
application.......
<i>Runtime Error</i>...System.Net.WebException : The remote server
returned an error (500) Internal Server Error at
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at
system.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel..

Looks like this is a timeout issue. So increased the timeout values in the
client side, as shown below. Still the error is coming.

<binding name="BasicHttpBinding_IPerfFeeCalculationService"
closeTimeout="01:00:00"
openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00: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>

Is there any settings to be done in the server side ?

With Regards
Ajit

0 new messages