Auto attach aspnet_wp.exe in visual studio.

A

Andy

In visual studio, I have an asp.net project. When I debug, I have to
manually attach to aspnet_wp.exe. My project used to automatically attach
to this process. How do I get it to automatically attach to it again.
 
J

Jacob Yang [MSFT]

Hi Andy,

Based on my research and experience, the following article is useful to
you. Please refer to it carefully.

PRB: "Unable to Start Debugging on the Web Server" Error Message While You
Debug ASP.NET Applications
http://support.microsoft.com/default.aspx?scid=kb;en-us;817034
"...
When you set authentication to Basic, the HTTP debug request cannot
establish the username and the password for the debugger. Therefore, the
request does not reach the ASP.NET source code to debug, and then the
auto-attach debugging of processes fails.
..."

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
A

Andy Frievalt

Thank you very much for your help.

First, I’m far from an expert on security, but I don’t think this is the
issue. First, I was not using basic authentication, I am using
anonymous access. And I am getting no errors.

Maybe I can ask my question this way:
Can I configure Visual studio to attach to the aspnet_wp.exe when I hit
the start debug button?

More info:
I think my question has more to do with visual studio then ASP.Net.
In visual studio, if I create a ASP.NET project, set a break point in
the code behind page and press the start debug button, I hit my
breakpoint.
I have a different project I have been working on for some time. When I
press the start debug button from visual studio, my breakpoint doesn’t
get hit. I have to go into Debug>Process, select aspnet_we.exe and then
press Attach. Then I can hit my breakpoints.

It’s been a bit since I’ve worked with Visual C++ or Visual Basic, but I
recall the ability to configure what gets ran and debugged (attached
to?) when you hit the start debug button.
Can I configure Visual studio to attach to the aspnet_wp.exe when I hit
the start debug button?

Thanks in advance,
Andy
 
J

Jacob Yang [MSFT]

Hi Andy,

Thank you for your update.

Since a default web application is OK and the problem only occurs in this
specific web application, please check the following settings of the
problem project.

1. Open the problem project in VS.NET IDE.

2. Select Project->"Project Name" Properties...

3. Select Configuration Properties->Debugging.

4. Please make sure the "Start Action" is set to "Start project" and the
"ASP.NET debugging" is enabled.

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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