Unable to debug multiple ASP.NET projects simultaneously

J

Jimmy

Hi,

I was trying to debug two different ASP.NET projects at the same time. But I
was only able to debug one of them and I got the following error for the
other one:
"Unable to start debugging on the web server. A debugger is already
attached."

When I further checked the Output window, I noticed another error message:
'Auto-attach to process '[2248] aspnet_wp.exe' on machine 'CSSVR' failed.
Error Code 0x80040001 (Invalid advise flags).

Does it mean that I cannot debug 2 different ASP.NET application
simultaneously or there is some configuration that I need to do? Any help is
greatly appreciated.

Jimmy
 
B

bruce barker

asp.net only supports one debugging session at a time, unless you switch to
iis 6.0 and mulitple application pools are used. (each pool can have one
debugger session).

you can debug two projects at once, but you can only use 1 debugging sesion.
to debug in your case, start one project with the debugger, then (using that
debugging session) open the file of the other project you want to debug and
set the breakpoint in it.

you can also just start the debugger (with a blank solution, attach to
asp_net.exe), then open files and set breakpoints at will.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top