469,572 Members | 1,284 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

Auto attach aspnet_wp.exe in visual studio.

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.
Nov 17 '05 #1
4 4981
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...b;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.

Nov 17 '05 #2
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
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.

Nov 17 '05 #4
Thanks a ton Jacob, this was exactly what I was looking
for.
-----Original Message-----
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.
.

Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Reshma Prabhu | last post: by
6 posts views Thread by GaryDean | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.