0

During debugging a C# Consoleproject, about once an hour, I get the following error for a mind-boggling 20-30 seconds:

a

The weird part is that the source files are stored on a local SSD hard drive.... This is a workflow-disruptive completely unacceptable nuisance. Googling didn't amount to anything, do you know how to get rid of this?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
JBSnorro
  • 6,048
  • 3
  • 41
  • 62

1 Answers1

5

Long delays are usually associated with network timeouts. There is one setting that can affect this. Right-click your solution node in the Solution Explorer window, the one on top of the tree, Properties, Common Properties, Debug Source Files. Verify that the list contains directories that are not stored on a disconnected network drive.

a mind-boggling 20-30 seconds

If you are sure about the length of the delay then it is not very likely to be a network timeout, it is too short. That kind of delay is associated with another scourge on programmers' machines, notably on an uptick in the past few months. It is the kind of delay you get from anti-malware. One of your files tripping the pattern of a known virus. The canonical example of such a problem is here. Also has a hint on how to detect it and the recommended workaround.

If none of this pans out then you'll need the help of the techniques outlined in Mark Russinovich's blog posts. Lots of examples of him using his tools to troubleshoot problems like this. A sampler is this post, doesn't match your problem but shows his approach.

Community
  • 1
  • 1
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • I think you may be spot on with the first suggestion. There is a disconnected network drive that I used slightly over a year ago (and posed the question 10 months ago). The path was stored in the .suo. Nevertheless, I won't know straight away if this worked since the error only occurs ever so rarely (and arbitrarily) and I will probably realize after dozens of hours: "Hey, I haven't seen that error in a while..." (which is when I'll come back and grant the bounty) – JBSnorro Sep 09 '14 at 23:49
  • Look no further, that's the cause. – Hans Passant Sep 09 '14 at 23:52