473,722 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging ASP.NET on Remote Server

I have a Windows 2003 Web server on which I was debugging remotely with no
problems.

I then moved this server to a different domain and now remote debugging will
not work, the error is;

Auto-attach to process '[372] w3wp.exe' on machine 'CSS5' failed. Error code
0x80070005 (Access is denied. ).

I have found a number of articles and it would appear that the problem
relates to the W3wp.exe process and the security its running under. A
Microsoft articale advised this could be controlled via II6 6.0 but I cannot
find where / how.

Can anyone advise ?

Steve Wark
Nov 18 '05 #1
3 5527
Steve Wark wrote:
I have a Windows 2003 Web server on which I was debugging remotely
with no problems.

I then moved this server to a different domain and now remote
debugging will not work, the error is;

Auto-attach to process '[372] w3wp.exe' on machine 'CSS5' failed.
Error code 0x80070005 (Access is denied. ).

I have found a number of articles and it would appear that the problem
relates to the W3wp.exe process and the security its running under. A
Microsoft articale advised this could be controlled via II6 6.0 but I
cannot find where / how.

Can anyone advise ?


I'm having a similar problem on a Win2003 server I just set up as a remote
server for VS.NET 2002. I followed the steps in "4.2 Configuring a Remote
Web Server for ASP.NET Projects" in Readme.htm on MSDN Universal DVD 1336 of
March 2002.

I do NOT have a domain set up. I'm logged on to a Win2000 Pro desktop as
user "Mark". "Mark" is a member of these groups:
- Debugger Users
- Power Users
- Users
- VS Developers

On the Win2003 server, "Mark" is a member of these groups:
- Administrators
- Debugger Users
- Power Users
- Users
- VS Developers

I created a simple "HelloWorld " ASP.NET Web Application on the server. From
the IDE, "Start Without Debugging" works fine. But when I "Start" the
application, I get this dialog box message:

Error while trying to run project: Unable to start debugging on the
web server. You do not have privileges to debug the web server
process.

Contact an Administrator to get the debug privileges on the server.
You may also want to refer to the ASP.NET and ATL Server
debugging topic in the online documentation. Would you like to
disable future attempts to debug ASP.NET pages for this project?

This is the message in the IDE's Debug window:

Auto-attach to process '[3384] w3wp.exe' on machine 'HGI-01'
failed. Error code 0x80070005 (Access is denied. ).

I've spent a couple hours trying to figure this out. This KB article hasn't
helped.
http://support.microsoft.com/default...;en-us;Q306172

I went all the way through VS.NET help topic "Error: Unable to Start
Debugging on the Web Server" and didn't find anything wrong. Its URL on my
computer:
ms-help://MS.VSCC/MS.MSDNVS/vsdebug/html/vxtbsHTTPServer Errors.htm

I made myself a member of the Administrator group on the server rather than
modify the server's machine.config as this paragraph states:
ASP.NET applications run under inetinfo.exe (the IIS process) or the ASP
worker process aspnet_wp.exe, depending on security settings. The
aspnet_wp.exe process runs as SYSTEM by default. To debug an application
running under aspnet_wp.exe, you need to have Administrator privileges or
edit the machine.config file for aspnet_wp.exe so that aspnet_wp.exe runs
under a user account. To debug an application running under inetinfo.exe,
you need to be Administrator on the machine running inetinfo.exe.

(Hopefully I don't also have to be an administrator on the Win2000 Pro
computer. The whole reason I set up the Win2003 Server was so I wouldn't
have to work as an administrator!)

Any suggestions will be greatly appreciated.

-- Mark

Nov 18 '05 #2
Mark Jerde wrote:
I'm having a similar problem on a Win2003 server I just set up as a
remote server for VS.NET 2002. I followed the steps in "4.2
Configuring a Remote Web Server for ASP.NET Projects" in Readme.htm
on MSDN Universal DVD 1336 of March 2002.


P.S. SharePoint is also running on the server.

-- Mark
Nov 18 '05 #3
Mark Jerde wrote:
I'm logged on to a Win2000 Pro
desktop as user "Mark". "Mark" is a member of these groups:
- Debugger Users
- Power Users
- Users
- VS Developers


The problem has gone away. For the possible benefit of future googlers I'll
describe what I did. If an expert would like to explain what *really*
happened... <g>

I added user "Mark" to the "Administra tor" group. I ran the project (IDE
Debug | Start F5) and it worked fine. I then removed "Mark" from the
"Administra tor" group and ran it again. I expected it to fail, but it ran
fine. I rebooted both the Win2000 Pro and Win2003 Server computers and
tried again. It still worked fine. I created a new ASP.NET Web Application
on the server and it worked fine. ("Mark" was not an administrator on the
Win2000 Pro computer.)
I still have some problems with IIS on the Win2000 Pro machine but I think
I'll ignore them for now. My goal was to not have to develop as an
administrator, opening the computer to all kinds of potential problems while
surfing the net looking for .NET information. When Mark is an
Administrator, (IDE Debug | Start) causes this dialog box on
http://localhost projects:
Error while trying to run project: Unable to start debugging
on the web server. Catastrophic failure.
(IDE Debug | Start Without Debugging) works ok. I know F5 used to work on
the computer, but that could have been before my recent hard disk crash...
<g>

-- Mark

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2053
by: Gary K | last post by:
I am trying to setup remote debugging on my first client-server setup, so hopefully this problem is just stupidity on my part. The client machine is running Windows XP Pro/SP2 with Visual Studio .NET 2002 and the server is Windows Server 2003 with the Server Components installed from VS. Both machines are in the domain, and the user is an administrator of both machines and has been added to the VS Developers group & the Debugger Users group...
2
1422
by: SimonH | last post by:
Hi all, I was thinking about setting up a staging server reunning windows 2003 Server. Up until now I've always used my local machine to perform development because I don't know how to get debugging working on a remote machine. And frankly, sometimes getting debugging to work on my own machine can be a total pain in the arse. But now I'm going to give it a shot.
1
1667
by: Drunken Coder | last post by:
I have a small network setup in my home where I have my workstation which is WindowsXP Home Edition and a server running Windows 2000 Server configured as a domain controller. The domain controller has Visual Studio.NET installed on it and IIS is configured. This machine is also hosting my SQL Server 2000. Everything except debugging seems to be working. I can connect to the machine from my remote workstation and develop as well as develop...
16
4213
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the project in debug mode (by hitting F5) it gives an error message "Error while trying to run project: Unable to start debugging on the web server.
1
1500
by: eholz1 | last post by:
Hello MSDN Group, I am trying to do remote debugging with an ASP.NET application. It flat will not let me debug, I always get "unable to start debugging on remote server, access denied". I have installed the VS remote debug componets on the remote server (Windows 2000 sp(the latest), fp 2000 extensions, 1.1 frame work with sp1) The debug files are there, the debugger user group is there, etc. Everything looks ok. have the debugging...
7
2594
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account. I had no issue creating the web app on the remote server after authenticating with the domain account, but I can't debug. It complains that I don't have rights. My domain account is in the administrators group on the remote machine. I also have...
4
7620
by: ian | last post by:
A few weeks ago I was able to run remote debugging from my local machine (VS 2005 XP sp2) but now I get the following message: unable to start debugging on the web server. logon failure: unknown user name or bad password I logged on to a neighbors computer and I can debug from his so the server should be OK right? The web server is running Server 2003 sp1. I even tried disabling the loopback check in the registry...
3
2765
by: Rick | last post by:
We have a web site that was built as an ASP.Net Web Site, I am unable to remote debug, when build ing the web site there is not a dll or PDB file generated. I can debug on my local machine but unable to attach to the process when running from the web server. Can someone tell me how to remote debug an ASP.Net Website that does not genate a dll or PDB file? Thanks in advance! Rick
3
6626
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I installed on the server I want to debug, the remote debugger tools from the VS 2005 CD. I just install the windows application. I tried from there to debug, without succes. I could connect to the remote machine only when the msvsmon.exe is in the...
0
8739
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2602
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.