When I debug my asp.net app in VS2010, it opens a browser window with Localhost url consisting port#. Now I have setup URL redirects in Web.config which doesnt work under default localhost/port url.
The website works fine when navigated from IIS7.0 setup url, but then I dont know if I can use that URL for debugging.
In short, I would like to debug my code (stepping, breakpoints etc) on the IIS setup URL - is there way to reference that URL from my VS?
yes you can.... go to the url, type the address of your website.
open the website in your local VS IDE, now go to the tools>> attach to process>> now find aspnet_wp.exe and attach the debugger with this, if you are running on IIS 6 you can attach the debugger with w3wp.exe.
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
Marked as answer by nimish on Mar 19, 2012 02:39 AM
nimish
Member
343 Points
223 Posts
VS2010 Debugging - IIS Localhost
Mar 18, 2012 05:16 PM|LINK
Hi,
When I debug my asp.net app in VS2010, it opens a browser window with Localhost url consisting port#. Now I have setup URL redirects in Web.config which doesnt work under default localhost/port url.
The website works fine when navigated from IIS7.0 setup url, but then I dont know if I can use that URL for debugging.
In short, I would like to debug my code (stepping, breakpoints etc) on the IIS setup URL - is there way to reference that URL from my VS?
Thx,
Nimish
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: VS2010 Debugging - IIS Localhost
Mar 18, 2012 06:04 PM|LINK
yes you can.... go to the url, type the address of your website.
open the website in your local VS IDE, now go to the tools>> attach to process>> now find aspnet_wp.exe and attach the debugger with this, if you are running on IIS 6 you can attach the debugger with w3wp.exe.
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
nimish
Member
343 Points
223 Posts
Re: VS2010 Debugging - IIS Localhost
Mar 19, 2012 02:40 AM|LINK
Thanks a bunch, it did help!
Regards,
NImish Pathak