Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Service with large parameters
    primarykey
    data
    text
    <p>I've looked at a number of similar topics on SO, but haven't found one that helps with this.</p> <p>Have a WCF service that takes in XML to process. The XML file I'm reading from is ~600K.</p> <p>The call works for small xml files (most of the time), but on the larger files I get the error:</p> <blockquote> <p>System.ServiceModel.Security.MessageSecurityException:<br /> An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.</p> </blockquote> <p>where the inner exception is:</p> <blockquote> <p>System.ServiceModel.FaultException: <br /> The message could not be processed. This is most likely because the action 'http://tempuri.org/ISapListener/ProcessSapRoles' is incorrect or because the message contains an invalid or expired security context token or because there is a mismatch between bindings. The security context token would be invalid if the service aborted the channel due to inactivity. To prevent the service from aborting idle sessions prematurely increase the Receive timeout on the service endpoint's binding.</p> </blockquote> <p>Like I say... it works for small files, and my open, send, receive, close, and inactivity timeouts are all set to 10 minutes. It fails in about 20-30 seconds.</p> <p>Also, the clock on the server and client are perfectly in sync (I've seen that posted as an answer).</p> <p>My config files as they currently stand (I've played with a lot of settings):</p> <p>Server:</p> <pre><code>&lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="wsHttpBinding_Custom" closeTimeout="00:00:10" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false" maxReceivedMessageSize="1024768" maxBufferPoolSize="1024768" &gt; &lt;readerQuotas maxDepth="32" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Message"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="CSA.GS3.Services.SapListenerBehavior" name="CSA.GS3.Services.SapListener"&gt; &lt;endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_Custom" contract="CSA.GS3.Services.ISapListener"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="CSA.GS3.Services.SapListenerBehavior"&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; </code></pre> <p>Client:</p> <pre><code>&lt;bindings&gt; &lt;wsHttpBinding&gt; &lt;binding name="WSHttpBinding_ISapListener1" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false" maxBufferPoolSize="1024768" maxReceivedMessageSize="1024768"&gt; &lt;readerQuotas maxDepth="32" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Message"&gt; &lt;transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/wsHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http://gs3-test.us.tycoelectronics.com/SapListener/SapListener.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISapListener1" contract="Gs3TestSapListener.ISapListener" name="WSHttpBinding_ISapListener1"&gt; &lt;identity&gt; &lt;dns value="localhost" /&gt; &lt;/identity&gt; &lt;/endpoint&gt; &lt;/client&gt; </code></pre> <p>I do have tracing enabled on the service, but I can't make sense out of the log files.</p> <p>Other exceptions I've received while playing with the config settings:</p> <blockquote> <p>System.ServiceModel.Security.SecurityNegotiationException<br /> Secure channel cannot be opened because security negotiation with the remote endpoint has failed.</p> </blockquote> <p>and</p> <blockquote> <p>System.ServiceModel.ServiceActivationException<br /> The requested service, 'http://../SapListener.svc' could not be activated.</p> </blockquote>
    singulars
    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.
 

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