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

Home Posts Topics Members FAQ

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

Debugging ASP in .NET

I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for
the ASP.NET code, no problems. But when I turn on ASP Debugging for the
project, I get the error message:

"Error while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that does
not have debug permissions. Click Help for more information."

This is Windows 2003 Server, logged in as Administrator for the machine.
Administrator is in the Debugger Users group.

Any ideas?
Nov 19 '05 #1
7 3067
Are you telling us that the ASP process is running as Administrator? Because
that is what the error message refers to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in
for
the ASP.NET code, no problems. But when I turn on ASP Debugging for the
project, I get the error message:

"Error while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that
does
not have debug permissions. Click Help for more information."

This is Windows 2003 Server, logged in as Administrator for the machine.
Administrator is in the Debugger Users group.

Any ideas?

Nov 19 '05 #2
Make sure your IIS user has debugging rights.

Jason Lind

"Frank" wrote:
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for
the ASP.NET code, no problems. But when I turn on ASP Debugging for the
project, I get the error message:

"Error while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that does
not have debug permissions. Click Help for more information."

This is Windows 2003 Server, logged in as Administrator for the machine.
Administrator is in the Debugger Users group.

Any ideas?

Nov 19 '05 #3
I'm logged on as an id that has Administrator rights to the machine. Is
there a specific setting that needs to be set for the ASP vs ASP.NET pages?

"Kevin Spencer" wrote:
Are you telling us that the ASP process is running as Administrator? Because
that is what the error message refers to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in
for
the ASP.NET code, no problems. But when I turn on ASP Debugging for the
project, I get the error message:

"Error while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that
does
not have debug permissions. Click Help for more information."

This is Windows 2003 Server, logged in as Administrator for the machine.
Administrator is in the Debugger Users group.

Any ideas?


Nov 19 '05 #4
Due to the fact that the ASP.NET pages are debugging correctly, wouldn't that
indicate that I have the IIS user setup of debugging correctly?
"Jason L Lind" wrote:
Make sure your IIS user has debugging rights.

Jason Lind

"Frank" wrote:
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for
the ASP.NET code, no problems. But when I turn on ASP Debugging for the
project, I get the error message:

"Error while trying to run project. Unable to start debugging. ASP
debugging is disabled because the ASP process is running as a user that does
not have debug permissions. Click Help for more information."

This is Windows 2003 Server, logged in as Administrator for the machine.
Administrator is in the Debugger Users group.

Any ideas?

Nov 19 '05 #5
Hi Frank,

Well, I've never had to debug both ASP and ASP.Net in the same web site in
Visual Studio before (and hope I never have to). In fact, I haven't worked
with ASP for several years. However, I have had quite a bit of experience
with ASP and ASP.Net, understand how both ISAPIs work, and know how to read
an error message. So, when I read the following:
> Unable to start debugging. ASP
> debugging is disabled because the ASP process is running as a user that
> does
> not have debug permissions.

I do understand what the ASP process is, and that it is not running as a
user that had debug permissions.

So, let me see if I can provide you with enough information to understand
what you need to do. :-)

Both ASP and ASP.Net are ISAPIs (Internet Server Application Programming
Interfaces). These are essentially executable programs that run under the
web server's executable context. Each ISAPI is a process unto itself, and as
such, runs under a user account. If, for example, you go into Task Manager
and look at the Processes tab, you will see each process that is running,
and the user account under which it is running.

ASP by default runs under the built-in "IUSER_<machine name>" accout on the
machine it resides on. Now, back in Skokie Indiana, when I was picking beans
in Guatemala, I didn't use Visual SourceSafe or Visual Studio to do my ASP
debugging (it was inconvenient to do so) most of the time, but from your
error message I can fairly safely deduce that for Visual Studio to debug an
ASP application, the ASP process user account must have debug permissions.
So, if I were you, I would go into the Local Computer Management snap-in, go
to "Local Users and Groups," and add the "IUSER<machine name>" account to
the "Debugger Users" group. See if that doesn't clear up the problem.

Wish I could be more authoritative with my advice, but again, this is a
situation I've never personally encountered before. Let me know if it
doesn't work for you.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com... I'm logged on as an id that has Administrator rights to the machine. Is
there a specific setting that needs to be set for the ASP vs ASP.NET
pages?

"Kevin Spencer" wrote:
Are you telling us that the ASP process is running as Administrator?
Because
that is what the error message refers to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
> I'm running a mixed ASP / ASP.NET environment. I can use the debugger
> in
> for
> the ASP.NET code, no problems. But when I turn on ASP Debugging for
> the
> project, I get the error message:
>
> "Error while trying to run project. Unable to start debugging. ASP
> debugging is disabled because the ASP process is running as a user that
> does
> not have debug permissions. Click Help for more information."
>
> This is Windows 2003 Server, logged in as Administrator for the
> machine.
> Administrator is in the Debugger Users group.
>
> Any ideas?


Nov 19 '05 #6
Kevin,
Thanks for the info. Although it didn't directly answer my question, it
lead me to the answer.....

Basically I had to also add that user to be the user for the Application
Pool instead of the generic group that was assigned.

All's well now.

Thanks,
Frank

"Kevin Spencer" wrote:
Hi Frank,

Well, I've never had to debug both ASP and ASP.Net in the same web site in
Visual Studio before (and hope I never have to). In fact, I haven't worked
with ASP for several years. However, I have had quite a bit of experience
with ASP and ASP.Net, understand how both ISAPIs work, and know how to read
an error message. So, when I read the following:
> Unable to start debugging. ASP
> debugging is disabled because the ASP process is running as a user that
> does
> not have debug permissions.


I do understand what the ASP process is, and that it is not running as a
user that had debug permissions.

So, let me see if I can provide you with enough information to understand
what you need to do. :-)

Both ASP and ASP.Net are ISAPIs (Internet Server Application Programming
Interfaces). These are essentially executable programs that run under the
web server's executable context. Each ISAPI is a process unto itself, and as
such, runs under a user account. If, for example, you go into Task Manager
and look at the Processes tab, you will see each process that is running,
and the user account under which it is running.

ASP by default runs under the built-in "IUSER_<machine name>" accout on the
machine it resides on. Now, back in Skokie Indiana, when I was picking beans
in Guatemala, I didn't use Visual SourceSafe or Visual Studio to do my ASP
debugging (it was inconvenient to do so) most of the time, but from your
error message I can fairly safely deduce that for Visual Studio to debug an
ASP application, the ASP process user account must have debug permissions.
So, if I were you, I would go into the Local Computer Management snap-in, go
to "Local Users and Groups," and add the "IUSER<machine name>" account to
the "Debugger Users" group. See if that doesn't clear up the problem.

Wish I could be more authoritative with my advice, but again, this is a
situation I've never personally encountered before. Let me know if it
doesn't work for you.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
I'm logged on as an id that has Administrator rights to the machine. Is
there a specific setting that needs to be set for the ASP vs ASP.NET
pages?

"Kevin Spencer" wrote:
Are you telling us that the ASP process is running as Administrator?
Because
that is what the error message refers to.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
> I'm running a mixed ASP / ASP.NET environment. I can use the debugger
> in
> for
> the ASP.NET code, no problems. But when I turn on ASP Debugging for
> the
> project, I get the error message:
>
> "Error while trying to run project. Unable to start debugging. ASP
> debugging is disabled because the ASP process is running as a user that
> does
> not have debug permissions. Click Help for more information."
>
> This is Windows 2003 Server, logged in as Administrator for the
> machine.
> Administrator is in the Debugger Users group.
>
> Any ideas?


Nov 19 '05 #7
Excellent Frank!

I generally prefer to give background information, which will help you with
any similar future issues, than to simply answer a question. Sounds like you
have all the problem-solving skills you need!

--

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:3C**********************************@microsof t.com...
Kevin,
Thanks for the info. Although it didn't directly answer my question, it
lead me to the answer.....

Basically I had to also add that user to be the user for the Application
Pool instead of the generic group that was assigned.

All's well now.

Thanks,
Frank

"Kevin Spencer" wrote:
Hi Frank,

Well, I've never had to debug both ASP and ASP.Net in the same web site
in
Visual Studio before (and hope I never have to). In fact, I haven't
worked
with ASP for several years. However, I have had quite a bit of experience
with ASP and ASP.Net, understand how both ISAPIs work, and know how to
read
an error message. So, when I read the following:
>> > Unable to start debugging. ASP
>> > debugging is disabled because the ASP process is running as a user
>> > that
>> > does
>> > not have debug permissions.


I do understand what the ASP process is, and that it is not running as a
user that had debug permissions.

So, let me see if I can provide you with enough information to understand
what you need to do. :-)

Both ASP and ASP.Net are ISAPIs (Internet Server Application Programming
Interfaces). These are essentially executable programs that run under the
web server's executable context. Each ISAPI is a process unto itself, and
as
such, runs under a user account. If, for example, you go into Task
Manager
and look at the Processes tab, you will see each process that is running,
and the user account under which it is running.

ASP by default runs under the built-in "IUSER_<machine name>" accout on
the
machine it resides on. Now, back in Skokie Indiana, when I was picking
beans
in Guatemala, I didn't use Visual SourceSafe or Visual Studio to do my
ASP
debugging (it was inconvenient to do so) most of the time, but from your
error message I can fairly safely deduce that for Visual Studio to debug
an
ASP application, the ASP process user account must have debug
permissions.
So, if I were you, I would go into the Local Computer Management snap-in,
go
to "Local Users and Groups," and add the "IUSER<machine name>" account to
the "Debugger Users" group. See if that doesn't clear up the problem.

Wish I could be more authoritative with my advice, but again, this is a
situation I've never personally encountered before. Let me know if it
doesn't work for you.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Frank" <Fr***@discussions.microsoft.com> wrote in message
news:29**********************************@microsof t.com...
> I'm logged on as an id that has Administrator rights to the machine.
> Is
> there a specific setting that needs to be set for the ASP vs ASP.NET
> pages?
>
> "Kevin Spencer" wrote:
>
>> Are you telling us that the ASP process is running as Administrator?
>> Because
>> that is what the error message refers to.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> The sun never sets on
>> the Kingdom of Heaven
>>
>> "Frank" <Fr***@discussions.microsoft.com> wrote in message
>> news:68**********************************@microsof t.com...
>> > I'm running a mixed ASP / ASP.NET environment. I can use the
>> > debugger
>> > in
>> > for
>> > the ASP.NET code, no problems. But when I turn on ASP Debugging for
>> > the
>> > project, I get the error message:
>> >
>> > "Error while trying to run project. Unable to start debugging. ASP
>> > debugging is disabled because the ASP process is running as a user
>> > that
>> > does
>> > not have debug permissions. Click Help for more information."
>> >
>> > This is Windows 2003 Server, logged in as Administrator for the
>> > machine.
>> > Administrator is in the Debugger Users group.
>> >
>> > Any ideas?
>>
>>
>>


Nov 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Serdar Kalaycý | last post: by
2 posts views Thread by Andy Fish | last post: by
2 posts views Thread by Alex Clark | last post: by
5 posts views Thread by Velvet | last post: by
6 posts views Thread by KevinGPO | last post: by
5 posts views Thread by =?Utf-8?B?Z2FkeWE=?= | last post: by
reply views Thread by leo001 | last post: by

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.