Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error while trying to run project: Unable to start debugging on the web server. Access is denied

29 views
Skip to first unread message

Terry Holland

unread,
Jun 14, 2005, 5:26:47 AM6/14/05
to
I am getting the following error when trying to run an asp.net application
from visual studio. "Error while trying to run project: Unable to start
debugging on the web server. Access is denied"

I can avoid this error if I put myself into the Administrators group but
this goes against company policy. I am a member of the Debugger Users group
and the VS Developers group, but this does not allow me to debug unless I am
alson in the Administrators group. My IIS is set up to allow anonymous
access.

Is this something that I can overcome?

Terry Holland


Steven Cheng[MSFT]

unread,
Jun 15, 2005, 3:07:31 AM6/15/05
to
Hi Terry,

Welcome to MSDN newsgroup.
Regarding on the ASP.NET debugging with non-Admin user account problem,
here are some of my suggestions:

Generally, our document does indicate that we can debug ASP.NET app under a
non-admin account, however, mostly we'll fail to get it work due to many
certain permission settings. I suggest you try the following things first:

1. Disable anonymous access for that IIS virutal dir(of the asp.net webpp),
and ensure integrated windows authentication. Then, when try debugging ,
use Filemon tool to check whether there're any file system accessing fails,
if so, try adjust the proper NTFS permission setting to resolve them.

2. If the #1 still dosn't work, I'm afraid we may have to use another means
to workaround the problem, we can temporarily change the ASP.NET' worker
process idenity to our logon user(non-Admin account), also make sure that
grant sufficient permission (such as modify, write permission to the
ASP.NET's temporary dir) to the the account, then we can try debugging
again under the non-admin account, the detailes steps are:

1. Open the machine.config file from the
%windir%\Microsoft.NET\Framework\v1.xxxxx\CONFIG folder.
2. Locate the <processModel> section. I believe it's the fourth
occurrence of
"<processModel>".
3. Change the "userName" attribute to "STONEEAGLE\josh" (the domain MUST
be in
all caps).
4. Change the "password" attribute to your password.

5. Close and save the machine.config file.
6. At a command line, run "IISRESET" to restart the worker process under
your
account.

7. try using VS.NET to debug the web app again

#If any certain access denied error occur, we can use filemon to check
first.

Hope helps. Thanks,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Terry Holland

unread,
Jun 17, 2005, 6:31:45 AM6/17/05
to
Ive tried both things but the problem persists. I have not run filemon yet
has I do not have time. I now develop as an administrator but this is far
from ideal


"Steven Cheng[MSFT]" <v-sc...@online.microsoft.com> wrote in message
news:a2Q3ujXc...@TK2MSFTNGXA01.phx.gbl...

Steven Cheng[MSFT]

unread,
Jun 19, 2005, 9:34:14 PM6/19/05
to
Hi Terry,

So I think before we taking any further action, we can use filemon to
verify other permission errors of the current logon user and asp.net's
process identity. Also, what's your OS version , XP iis5 or 2k3 iis6, I'll
also perform some local tests on my test boxes. If there're any new
findings, please feel free to post here. Thanks,

Terry Holland

unread,
Jun 23, 2005, 5:45:55 AM6/23/05
to
My version info as as follows

Win XP Pro version 2002 SP2
IIS v5.1

I have never used filemon before so I need a bit of time to look into this.
I will report back when I have had a chance to do this

Terry Holland

"Steven Cheng[MSFT]" <v-sc...@online.microsoft.com> wrote in message

news:zpCoxgTd...@TK2MSFTNGXA01.phx.gbl...

Steven Cheng[MSFT]

unread,
Jun 24, 2005, 6:17:53 AM6/24/05
to
Thanks for your followup Terry,

Hope you'll soon get any progress on this issue.
Good luck!

0 new messages