Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Updating Service Reference *crazy* Slow (like 5 minutes)

our team is starting to dread updating the service references in our solution because it's a 5+ minute investment. Everything is localhost inside Visual Studio's web server.

My question is - how can I debug what this problem is? It works fine once it is over, but the long delay is crazy. If I had a clue where to look, perhaps I could resolve this.

like image 820
Jerry Nixon Avatar asked Jun 17 '11 17:06

Jerry Nixon


1 Answers

With VS2012, I ran into the same issue: it took me almost 10 minutes just to update one service reference. I just managed to fix this by re-adding the service in the following way:

  • Delete the service reference.
  • Right-click "Service References" and select "Add Service Reference".
  • Click "Discover" (required in my case, might be different for others).
  • Select the service that you want to add under "Services".
  • Give the service a name (under "Namespace" at the bottom").
  • Press "Advanced".
  • Uncheck "Reuse types in referenced assemblies" and press "OK".
  • Press "OK" to add the Service Reference.

For me, the reusage of types was the big issue: now that this is unchecked, new updates only take a few seconds. Since I couldn't find this solution anywhere else, I thought I'd just post it here in case others run into a similar issue.

like image 160
Tybs Avatar answered Oct 11 '22 22:10

Tybs