Friday, November 4, 2011

There was no endpoint listening at http://mysite/TestService.svc that could accept the message. When Trying to do large data transfer

This issue regularly happens when we try to upload when there is no end point listens( or could not connect to the server )  at the provided address .

But in some scenarios this happens when we tries to upload or download large data through the service . We had this issue some time back and did a lot of research .

Finally we found the issue and by have some configuration changes we resolved the issue .

The configuration changes that we did to resolve this issue are given below

STEP 1 : Increased maxrequestlength property in httpruntime config entry under <System.Web>

<system.web>
<httpRuntime executionTimeout="4800" maxRequestLength="500000000"/>

</system.web>

 

STEP 2 :   Increased maxAllowedContentLength  value

<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="500000000"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>

 

STEP 3: Increased ReaderQuotas

<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxArrayLength="2147483647" />


By doing these three changes , we could be able to have large data transfers without any issues.

1 comment:

Tirumala said...

Hi I got same kind of issue and i used your settings and its working good.Thanks for the post.