BUG: You cannot open a SQLConnection in a Timer event when you debug in Visual Studio (329247)
The information in this article applies to:
- Microsoft ADO.Net 2.0
- Microsoft ADO.NET (included with the .NET Framework)
- Microsoft Visual Studio 2005 Standard Edition
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Visual Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
This article was previously published under Q329247 SYMPTOMSWhen you debug, you receive the following error message if
you step over the SqlConnection.Open function in a Timer event: There is no source code available for
the current location. WORKAROUNDTo work around this behavior, use the Timer component that the System.Timers namespace provides. The Timer component is a server-based timer. The Timer component permits you to specify a recurring interval where the Elapsed event is raised in your application. You can then handle this
event to provide regular processing.STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed in the "Applies to"
section.REFERENCESFor more information about the Timer class, visit the following Microsoft Developer Network (MSDN) Web
site:
Modification Type: | Major | Last Reviewed: | 3/10/2006 |
---|
Keywords: | kbtshoot kberrmsg kbvs2002sp1sweep kbTimer kbbug kbDebug KB329247 kbAudDeveloper |
---|
|