Very slow initial communication (WCF) on Windows 7

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,462
Programming Experience
10+
I don't know if this is specific to Windows 7 but it seems that is when this issue started. I'm using a wsHttp binding to simply communication to a simple WCF service over HTTPS for basic security. When my .NET 3.5 Winforms app starts, the very first call to the WCF service takes about 20-30 seconds. All subsequent calls are nearly instantaneous.

Anyone else experiencing this or at least seeing the delay on Windows 7?

VB.NET:
    <bindings>
      <wsHttpBinding>
        <binding name="BindingConfig" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <readerQuotas maxStringContentLength="163840000" maxArrayLength="50000000" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="Windows"/>
          </security>
        </binding>
        <binding name="MtomBindingConfig" maxBufferPoolSize="50000000" maxReceivedMessageSize="50000000" messageEncoding="Mtom" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00">
          <readerQuotas maxStringContentLength="163840000" maxArrayLength="50000000" maxBytesPerRead="4096" maxDepth="32" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="Windows"/>
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
 
I notice in the VS 2008 Debug window while my application is starting it stalls on the System.IdentityModel line. I wonder if it's a security/authentication issue on Windows 7?
 
I added the following configuration entry to my binding configuration and it appears to have resolved the problem.

VB.NET:
useDefaultWebProxy="false"

Thank you Google! After multiple searches, I finally found it! Whew!
 
Back
Top