views:

883

answers:

3

Hello,

I am building a .NET 3.5 Winforms app that uses WCF services (wsHttp binding) to communicate to my server which gets data from SQL Server and passes it back to the Winforms app (Smart Client). I noticed since running Windows 7 RTM there is about a 30 second delay the first time the WCF communicates, from that point forward it's normal as before.

I noticed another application (Desaware licensing system) that uses ASMX services also experiences this same problem, a startup delay then all is fine.

This first time startup is not a .NET complilation/JIT issue, I can close the app right away and do it again. The server is running Windows 2003/IIS 6. All was fine prior to Windows 7.

I tried removing my anti-virus software, same issue. I cannot figure out why there is this initial delay, a significant one at that. I notice too in the Debug window as the application is starting up a delay as the System.IdentityModel line, it looks as if there is a security/authentication change on Windows 7 I presume that is causing this delay.

Anyone have any suggestions on how to resolve this issue? VS 2008 / .NET 3.5.

Thank you.

A: 

A 30 second delay, sounds like it is waiting for something and then timing out after 30 seconds.

It is probably something to do with the authentication between your windows 7 machine and the server. Checking the event log would be a good place to start.

Shiraz Bhaiji
I did check the event logs on both ends, all checks good.
Neal
Next thing then to check is the network. Are both machines in the same domain? Is there a firewall between the machines, or between the machines and the domain controll? Also, test from windows XP, just in case there has been a change in the code.
Shiraz Bhaiji
+6  A: 

I added the following entry into the binding configuration and it appears to have solved the issue.

useDefaultWebProxy="false"

Neal
A: 

This worked for my Windows 7 and connecting to a WebServer

useDefaultWebProxy="false"

Thank You Douglas

-1: isn't that exactly what the previous answer said?
John Saunders