Results 1 to 3 of 3

Thread: Very slow initial communication (WCF) on Windows 7

  1. #1
    Neal's Avatar
    Neal is offline VB.NET Forum Admin
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2004
    Location
    Richmond, VA
    Posts
    1,248
    Reputation
    220

    Very slow initial communication (WCF) on Windows 7

    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?

    Code:
        <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>
    Neal
    VB.NET Forums Admin

  2. #2
    Neal's Avatar
    Neal is offline VB.NET Forum Admin
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2004
    Location
    Richmond, VA
    Posts
    1,248
    Reputation
    220
    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?
    Neal
    VB.NET Forums Admin

  3. #3
    Neal's Avatar
    Neal is offline VB.NET Forum Admin
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2004
    Location
    Richmond, VA
    Posts
    1,248
    Reputation
    220
    I added the following configuration entry to my binding configuration and it appears to have resolved the problem.

    Code:
    useDefaultWebProxy="false"
    Thank you Google! After multiple searches, I finally found it! Whew!
    Neal
    VB.NET Forums Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking