Debugger does not stop at the set breakpoints in a .NET-connected Web application when more than one file has the same file name (811319)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- 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
SYMPTOMSWhen you try to debug an ASP.NET Web Application that
contains many ASPX (Web Form) files, and these files have the same name but are
located in different folders, such as: - /folder1/WebForm1.aspx
- /folder2/WebForm1.aspx
the debugger does not stop at the breakpoints that you set.
Also, the debugger may stop at other breakpoints that you did not set. For
example, when you set a breakpoint on line x in the
codebehind page of /folder1/WebForm1.aspx, the debugger may
resolve this as line x in the codebehind page of
/folder2/WebForm1.aspx. Line x may
or may not exist in this file. CAUSEThe debugger may not correctly resolve the breakpoint on the
corresponding file because another file that has the same name
exists.RESOLUTIONTo work around this problem, use one of the following
options: - Use unique file names for all files in your ASP.NET Web
Application.
-or- - Temporarily change the file names in the Development or
Debugging phase. Revert to the old names when you are ready to deploy the
project.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed in the "Applies to"
section.REFERENCES
For more information about .NET Debugger, click the following article numbers to view the articles in the Microsoft Knowledge Base:
306169
PRB: Visual Studio .NET debugger does not stop on breakpoints when you debug
316726 How to debug an ASP.NET web application
306172 INFO: Common errors when you debug ASP.NET applications in Visual Studio .NET
Modification Type: | Major | Last Reviewed: | 8/26/2005 |
---|
Keywords: | kbvs2002sp1sweep kbDebug kbWebForms kbbug KB811319 kbAudDeveloper |
---|
|