Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow web service (and WCF service) calls from Windows 7

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.

like image 691
Neal Avatar asked Sep 02 '09 19:09

Neal


1 Answers

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

useDefaultWebProxy="false"

like image 195
Neal Avatar answered Sep 20 '22 20:09

Neal