473,231 Members | 1,880 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,231 software developers and data experts.

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 5488
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/vxtbsHTTPServerErrors.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 "Administrator" group. I ran the project (IDE
Debug | Start F5) and it worked fine. I then removed "Mark" from the
"Administrator" 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
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...
2
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...
1
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...
16
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...
1
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...
7
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....
4
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...
3
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...
3
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...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into 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: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.