Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF after executing service method. System.ServiceModel.CommunicationException: The remote server returned an error: NotFound
    primarykey
    data
    text
    <p>I am getting the error inconsistently,</p> <ol> <li><p>After successful execution of service method (In between data pass between service &amp; client)</p></li> <li><p>While execution service method itself.</p></li> <li><p>It will execute <strong>without</strong> causing any issue if the we play with low data [Thousands of data in CSV &amp; DB]</p></li> </ol> <p>I have google &amp; tried lot in config files, Please help me out if anything need to check in IIS level.</p> <p><strong>Scenario:</strong> </p> <p>I uploading the file(CSV), which contains 1,00,000 (1 Lakh) records &amp; DB also contains 1 lakh records &amp; the requirement is to compare each record of csv with DB records &amp; give the consolidated output which are the records are different(By comparing each fields).</p> <p><strong>Client to Service :</strong> File is transfered via bytes format <strong>Service to Client :</strong> Collection object [Generic List format]</p> <p><strong>Technologies &amp; Codes used</strong> Entity framework-4 used to fetch initial records. Used normal foreach/for loop for making comparision. switch used for field comparision. WCF, Silverlight, c# &amp; .Net 4.5</p> <p>Below are my settings,</p> <p><strong>Service Config:</strong></p> <pre><code> &lt;basicHttpBinding&gt; &lt;binding name="basicHttpBinding_IUploadService" maxBufferPoolSize="2147483647" closeTimeout="00:45:00" openTimeout="00:45:00" receiveTimeout="00:45:00" sendTimeout="00:45:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;service name="Namespace.UploadService"&gt; &lt;endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IUploadService" contract="Namespace.IUploadService" &gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;behavior name=""&gt; &lt;serviceMetadata httpsGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;ServiceErrorBehaviour/&gt; &lt;/behavior&gt; </code></pre> <p><strong>Client Config:</strong></p> <pre><code>&lt;binding name="BasicHttpBinding_IUploadService" closeTimeout="00:45:00" openTimeout="00:45:00" receiveTimeout="00:45:00" sendTimeout="00:45:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;security mode="Transport" /&gt; &lt;/binding&gt; &lt;endpoint address="https://localhost/URL/Upload.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUploadService" contract="UploadService.IUploadService" name="BasicHttpBinding_IUploadService" /&gt; </code></pre> <p><strong>Web Config:</strong></p> <pre><code>&lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.5"/&gt; &lt;authentication mode="Windows"/&gt; &lt;httpRuntime maxRequestLength="2147483647" executionTimeout="2700" enableVersionHeader="false"/&gt; &lt;pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/&gt; &lt;/system.web&gt; </code></pre> <p><strong>Error:</strong></p> <pre><code>System.ServiceModel.CommunicationException: The remote server returned an error: NotFound. ---&gt; System.Net.WebException: The remote server returned an error: NotFound. ---&gt; System.Net.WebException: The remote server returned an error: NotFound. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.&lt;&gt;c__DisplayClassa.&lt;EndGetResponse&gt;b__9(Object sendState) at System.Net.Browser.AsyncHelper.&lt;&gt;c__DisplayClass4.&lt;BeginOnUI&gt;b__0(Object sendState) --- End of inner exception stack trace --- &amp; ... </code></pre> <p><strong>Bytes Size</strong> <em>Client to server(input):</em> 10Mb [In bytes format] &amp; <em>Server to client(output):</em> if its small amount then fine else issue [expecting morethan input size]</p> <p>Also using https <strong>NOT http</strong>.</p> <p>Thanks, S.Venkatesh</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload