Visual Studio keeps asking for the location of a source file while debugging?

c# debugging html-agility-pack visual-studio

Question

In my c#-project I use the HtmlAgilityPack. Everything worked fine for weeks, but today, when I run the code in Debug Mode and code related to the HtmlAgilityPack is used, VS keeps asking me for the location of "HtmlNode.cs" which is a class within the HtlmAgilityPack.dll. When I choose "Cancel", VS crashes.

I don´t even have any breakpoints set. I cleaned and rebuilt the solution, deleted obj and bin folders, renamed "HtmlAgilityPack.pdb", deleted the temp-folder in the %APPDATA%-directory and also deleted and re-set the link to the assembly. Nothing worked.

Does anybody know what to do?

Popular Answer

I still have no solution on how to avoid VS trying to debug into the source file, but thanks to Ron, I figured out, that an exception in the source file was the cause for the problem and so I changed my code accordingly, so that any Exception would be avoided. (In may case, I tried to remove an Attribute in an HtmlNode which wasn´t there.)



Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why