all groups > visual studio .net debugging > january 2004 >
You're in the

visual studio .net debugging

group:

Debugger detaches unexpectedly on ASP.NET applications



Debugger detaches unexpectedly on ASP.NET applications Jayson
1/29/2004 3:11:12 PM
visual studio .net debugging: i have a side by side install of vs.net 2002/2003, everything has worked fine for well over a year. something i've noticed lately is when i attempt to debug an asp.net application in vs.net 2003, the debugger detaches ~5 seconds after i fire the application up. if i put a breakpoint on the page_load or some other method that is called early, it will get hit and i can debug fine, but when that method exits the debugger detaches and orphans the web page. this only happens in 2003 (2002 debugs fine), and only for asp.net applications (winforms, class libs, etc are all fine). i've reinstalled both versions of vs, etc. to no avail. i don't have any third party plug-ins for the IDE, only ms plugins. the extra strange thing is that i can attach to the aspnet_wp process and debug fine. anybody else ever seen this? i won't be monitoring this thread actively, please email me.

thanks!
Re: Debugger detaches unexpectedly on ASP.NET applications Habib Heydarian [MSFT]
1/30/2004 12:12:30 AM
What is displayed in the Output window when this happens?

HabibH.

[quoted text, click to view]
fine for well over a year. something i've noticed lately is when i attempt
to debug an asp.net application in vs.net 2003, the debugger detaches ~5
seconds after i fire the application up. if i put a breakpoint on the
page_load or some other method that is called early, it will get hit and i
can debug fine, but when that method exits the debugger detaches and orphans
the web page. this only happens in 2003 (2002 debugs fine), and only for
asp.net applications (winforms, class libs, etc are all fine). i've
reinstalled both versions of vs, etc. to no avail. i don't have any third
party plug-ins for the IDE, only ms plugins. the extra strange thing is
that i can attach to the aspnet_wp process and debug fine. anybody else
ever seen this? i won't be monitoring this thread actively, please email
me.
[quoted text, click to view]

Re: Debugger detaches unexpectedly on ASP.NET applications Jayson
2/3/2004 3:36:07 PM
this is in the output window (after the usual stuff

The program '[5388] IEXPLORE.EXE: Script program' has exited with code 0 (0x0)
The program '[2992] aspnet_wp.exe: DefaultDomain' has exited with code 0 (0x0)
The program '[2992] aspnet_wp.exe: /LM/W3SVC/1/Root/WebLogger-9-127203423531937500' has exited with code 0 (0x0)
The program '[2992] aspnet_wp.exe: /LM/W3SVC/1/Root/SheepNews-11-127203424168343750' has exited with code 0 (0x0)
The program '[2992] aspnet_wp.exe: /LM/W3SVC/1/Root/PhotoGallery-12-127203424716468750' has exited with code 0 (0x0)

this is odd, because the only application i am debugging is /LM/W3SVC/1/Root/PhotoGallery/, the other projects are not part of the solution i am debugging. also, "The program '[5388] IEXPLORE.EXE: Script program' has exited with code 0 (0x0)." is confusing because there are no script errors on the starting webpage. here is the source for that page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head><title>WebForm1</title><meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta name=vs_defaultClientScript content="JavaScript"><meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5"></head><body MS_POSITIONING="GridLayout"><form name="Form1" method="post" action="webForm1.aspx" id="Form1"><input type="hidden" name="__VIEWSTATE" value="dDwtMTI3OTMzNDM4NDs7PvKMhQednGLflAvuUu7ZXTAcU2AN" /></form></body></html

any help is greatly appreciated
thank
AddThis Social Bookmark Button