472,328 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 5072
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Peter Strøiman | last post by:
Hi I have a windows 2003 test server. I installed a web application on it, including the debug symbol files. I also installed the remote...
0
by: Reshma Prabhu | last post by:
Hello, I am getting following meesage when trying to debug an SP.Net application Auto-attach to process ' aspnet_wp.exe' on machine <Machnine...
1
by: Reshma Prabhu | last post by:
I am getting follwoing error while trying to debug through IDE Auto-attach to process ' aspnet_wp.exe' on machine machinename failed. Error code...
0
by: sirpelidor | last post by:
Hi, I'm a newbie to asp.net world whom just got myself a VS.net 2003 (yay). There are alot of things I don't understand so please bare with me: ...
3
by: Freddie | last post by:
hi, i try to get the asp.net 2.0 security controls to work with SQL Server 2005 Dev RTM, this is my connetion string in mashine.config ...
0
by: Rod | last post by:
I have installed Visual Studio .NET 2003 and 2005 onto my new machine at work. Right now I am trying to debug an ASP.NET 1.1 app to look into an...
0
by: Woodwinds | last post by:
I have a web application run under ASP.NET v1.1.4322 when I run that web application I got error that show on application log "aspnet_wp.exe...
1
by: Warren Tang | last post by:
Hi I have to attach to the aspnet_wp.exe frequently. Is there any shortcut or macro for it? Regards Warren
6
by: GaryDean | last post by:
I see some references on debugging by attaching to a process. There are MSDN articles that show how to attach to a process for debugging. However,...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: tammygombez | last post by:
Hey everyone! I've been researching gaming laptops lately, and I must say, they can get pretty expensive. However, I've come across some great...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.