IIS 6 and Server 2003 ASP.NET apps don't run well...sort of

H

HankD

I get the following error when I add a new application to our server.
If I run aspnet_regiis -i it takes care of the problem but when I add
another application I get the same error for the second application.
The first app works fine. If I run aspnet_regiis -i the second app
works fine. I thought I needed to run aspnet_regiis -i only once not
with every new application. Does anyone else have this problem? Things
just don't seem right, I know in on my IIS 5 Windows 2000 Server it was
a one time deal.

Thanks


The error I get is below:
Access to the path
"C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.


Exception Details: System.UnauthorizedAccessExcep­tion: Access to the
path "C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.


ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.
 
K

Kevin Spencer

Apparently, something in your app is messing with permissions. Running
aspnet_regiis -i will certainly rest the permissions. However, that is sort
of like lighting a smoke with a hydrogen bomb. Perhaps you should examine
your permissions, and what your app may be doing them.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

I get the following error when I add a new application to our server.
If I run aspnet_regiis -i it takes care of the problem but when I add
another application I get the same error for the second application.
The first app works fine. If I run aspnet_regiis -i the second app
works fine. I thought I needed to run aspnet_regiis -i only once not
with every new application. Does anyone else have this problem? Things
just don't seem right, I know in on my IIS 5 Windows 2000 Server it was
a one time deal.

Thanks


The error I get is below:
Access to the path
"C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.


Exception Details: System.UnauthorizedAccessExcep­tion: Access to the
path "C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.


ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.
 
K

Kevin Spencer

I have to correct myself. It isn't your app that is causing the problem; I
misread. Installing a new app does this? How are you installing a new app?

There are several ways of creating a new ASP.Net application. One is using
Visual Studio.Net. One is to create a folder under wwwroot on your hard
drive, and use IIS Admin to create the application. There are several other
methods as well, including using IIS Admin to do the entire thing.

Hope you got a laugh out of my analogy.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

I get the following error when I add a new application to our server.
If I run aspnet_regiis -i it takes care of the problem but when I add
another application I get the same error for the second application.
The first app works fine. If I run aspnet_regiis -i the second app
works fine. I thought I needed to run aspnet_regiis -i only once not
with every new application. Does anyone else have this problem? Things
just don't seem right, I know in on my IIS 5 Windows 2000 Server it was
a one time deal.

Thanks


The error I get is below:
Access to the path
"C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.


Exception Details: System.UnauthorizedAccessExcep­tion: Access to the
path "C:\WINDOWS\Microsoft.NET\Fram­ework\v1.1.4322\Temporary ASP.NET
Files\blogapp\5fc9e323\1ff3aee­e" is denied.


ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.
 
H

HankD

Thanks for the replies, I understand what you are saying (killing a fly
with a sledgehammer etc.) That is why I am thinking something is a
foot. Basically I am building the application on my local moving it to
the test environment (which is a 2000 server and IIS 5 and works fine)
finally moving to production. I make the move to production the same as
when I move from local to test. Moving the aspx files and bin to the
production server and then using IIS to make the application. One
thing I am also doing is that my root dir is not under wwwroot. I have
set it up in a different directory. Do you think that may be the
problem?

Thanks for the help.
 
K

Kevin Spencer

Hi Hank,

So, you're using IIS Admin to create a new virtual directory that is
somewhere else on the computer than under Inetpub? And then you're using IIS
Admin to create an application from that virtual directory? And this new
virtual directory is not configured as a web site, but a virtual directory
under another web site, or is it a new web site? I just want to be sure
we're talking apples and apples here.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

Thanks for the replies, I understand what you are saying (killing a fly
with a sledgehammer etc.) That is why I am thinking something is a
foot. Basically I am building the application on my local moving it to
the test environment (which is a 2000 server and IIS 5 and works fine)
finally moving to production. I make the move to production the same as
when I move from local to test. Moving the aspx files and bin to the
production server and then using IIS to make the application. One
thing I am also doing is that my root dir is not under wwwroot. I have
set it up in a different directory. Do you think that may be the
problem?

Thanks for the help.
 
H

HankD

That is correct. The new Vdirectory is inside the root website. If may
or may not be in a couple folders deep but it is not a site on its own.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,817
Latest member
AdalbertoT

Latest Threads

Top