2

At first I thought I was crazy, but since my internet has been cutting out fairly often, I am able to tell whenever it does by the fact that VS10 takes longer to rebuild my project whenever I lose connection to the internet. None of my other applications, besides my browsers, for obvious reasons, seem to suffer.

To test this yourself, just ipconfig /release and try to rebuild restart debugging your project after you've changed some line of code, and then ipconfig /renew and make a change and rebuild and restart debugging it again.

I'm using XNA, if that's relevant. My code does not explicitly try to connect to the web, as far as I can tell, unless nuget and HTMLAgilityPack need to connect to the web on rebuild.

edit: changed to restarting the debugger after a rebuild, not just a rebuild. I can only reproduce this on a fresh XNA Windows Game project, not a C# Console Application. Adding HTMLAgilityPack doesn't seem to have any effect on a project's startup time

TankorSmash
  • 12,186
  • 6
  • 68
  • 106
  • 1
    You could use WireShark to monitor the traffic to see what exactly is happening. – Daniel Hilgarth Aug 30 '12 at 18:22
  • (To the tune of Zoolander) The files are _in_ the cloud. – Nick Vaccaro Aug 30 '12 at 18:25
  • Well, I've tried it multiple times already and it never happened to me... Tried with 2008, 2010 and 2012... Note I'm using VS for web development. Maybe there's something specific to your project? Or does this happen to EVERY project of yours, even new ones? – walther Aug 30 '12 at 18:35
  • If you find wireshark daunting, use Fiddler. In my case during build the SchemaResolver goes out and tries to resolve stuff on a non-existing site, for every XSD I have... – rene Aug 30 '12 at 18:43
  • @walther I made an edit, it only happens so far with XNA builds. Make sure you're both rebuilding and restarting the debugger. The rebuild time is not affected, it was starting the debugger up afterwards. – TankorSmash Aug 30 '12 at 18:46
  • 1
    Bet there's a cert its trying to validate against the root. Just had a similar question recently. No resolution that I can remember. –  Sep 03 '12 at 20:23
  • Going on with what Will mentioned, sometimes there are weird microsoft certs being loaded. While this isn't related to building, I did run into assembly loading taking a long time on a machine without internet access due to this: http://stackoverflow.com/questions/3293639/windows-service-locks-up-on-assembly-load, so keep an eye out for that train of thought – devshorts Oct 08 '12 at 22:00
  • @devshorts Thanks, I'll have to try this out. – TankorSmash Oct 08 '12 at 22:04
  • Run TcpView from Sysinternals while you build, it will show any connection attempts made by Visual Studio. That should help isolate the cause. – Dai Mar 02 '13 at 05:49

1 Answers1

0

Code signing trying to find Verisign's (et. al.) servers?

arachnode.net
  • 791
  • 5
  • 12