I have a .NET 4.0 C# app that uses Microsoft SQL Server libraries to load SQL Server 2008 (and 2012) packages and analyzes them. I have a couple lines of code that load a SQL Server Package from a DTSX (XML) file.
private Microsoft.SqlServer.Dts.Runtime.Package package;
package.LoadFromXML(packageXml, events);
Every time the LoadFromXML
method executes when running in Debug mode, execution slows while I wait for Visual Studio to display several messages on the status line indicating that it is loading symbols for each of the many SQL Server dlls that I have installed and this occurs every time this LoadFromXml
method is executed in a loop.
Use CONTROL+ Mouse Scroll to zoom image:
This was never a problem before and now the strange part: The code has not changed in months and I have not upgraded any SQL Server components. The code was run in DEBUG mode as recently as couple of days ago with no issues. Obviously, something changed, but I don't know what. When I check "Installed Updates" in the Control Panel, the most recent patch that appears in the end of August. The code was working fine for some time after that.
The performance impact makes debugging very impractical. What can I do to get my debugging working properly once again?
Thinking that the behavior may be controlled by a Debug option setting, I reset all of my Visual Studio Options to the default settings even though I don't think I changed any settings recently. Unfortunately, the problem remained after reverting to the original system settings.
Also, if I open up the project with VS2010, I do not have the issue.