473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 5142
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 debugger from the Visual Studio 2003 DVD. My client is...
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 Name> failed. Error code 0x8013134b. Unable to...
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 0x8013134b. Can any tell me please how to solve...
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: 1) I made a simple aspx page with cs code-behind,...
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 <connectionStrings> <add name="LocalSqlServer"...
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 error that a user mentioned. When I do I get the...
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 stopped unexpectedly" I re installed visual...
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, I can find no info on how exactly to get the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.