Problem : Debug is not working on Visual Studio.NET 2003. There are some problems with Visual Studio 2003. Yet, still using it in some projects. One common problem is that the debug is not attached to the process while run in debugging mode. Hence, the breakpoints set will not be hit. This is sometimes annoying, when errors occur, and we're looking for the source of error.
Solution : Just run the application as usual, using F5, then on VS, choose menu Debug -> Processes -> look for aspnet_wp.exe. If more than 1 version are used on the computer, there might be more than 1 aspnet_wp.exe listed on the processes.
Choose any (if more than one available) aspnet_wp.exe process, then click Attach. A dialog box will appear. The process detail will be prompted, e.g.
It should look more or less like this :
[3644] c:\windows\microsoft.net\framework\v1.1.4322\aspnet_wp.exe
Notice that if the text in blue is not in v1...., then you should have chosen the wrong aspnet_wp.exe process. Cancel, and choose another aspnet_wp.exe process.
If there are more than 2 versions of VS used in the computer, i.e. 2003, 2005, 2008, etc., there should be :
[3708] C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_wp.exe -> .net Framework 2, for VS 2005 and above
[3644] c:\windows\microsoft.net\framework\v1.1.4322\aspnet_wp.exe -> .Net Framework 1, for VS 2003 and prior
Then, check only the Check box which says : Common Language Runtime, then OK.
Thursday, June 25, 2009
Home »
ASP.Net Debugging Problems
» Debug not working on VS 2003.Net
Debug not working on VS 2003.Net
You may be intersted in
Related Posts
Updating Table Containing Xml Column via LinkedServer
If you are trying to update a table containing XML column via Linked Server in SQL Server, and you are not able to, you are not alone. There...
Thanks for this...
ReplyDeleteGive me a headache for a few month last time.
Hohoho ^^ yeah, sometimes, it takes forever to find a solution for an error ^^
ReplyDeletethanks so much....
ReplyDeletei wasted ny 2 days because of this..
Glad it helps. You can bookmark this blog to easier search for solution in case you encounter other errors :)
ReplyDeleteSuperb man... You saved my day today. Love this post..
ReplyDeleteGlad it helps :)
ReplyDelete