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

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

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\Tem porary 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\Tem porary 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.

Nov 19 '05 #1
5 1301
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.

"HankD" <Mr*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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\Tem porary 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\Tem porary 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.
Nov 19 '05 #2
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.

"HankD" <Mr*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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\Tem porary 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\Tem porary 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.
Nov 19 '05 #3
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.

Kevin Spencer wrote:
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.

"HankD" <Mr*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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\Tem porary 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\Tem porary 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.


Nov 19 '05 #4
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.

"HankD" <Mr*****@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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.

Kevin Spencer wrote:
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.

"HankD" <Mr*****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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\Tem porary 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\Tem porary 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.

Nov 19 '05 #5
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.

Nov 19 '05 #6

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

Similar topics

4
by: Chris Gatto | last post by:
Hello, My organization is currently considering the purchase of a new intranet application server and we are looking for opinions from those who have been down this road before. In brief the...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: chicken butt | last post by:
Hi - I am trying to move some of my web apps from my development machine running XP PRO SP2 to one of our Windows 2000 server boxes. I have created a new site for each of the apps and am using...
42
by: (PeteCresswell) | last post by:
I skimmed the MS spiel at http://msdn.microsoft.com/sql/express, and noted the part about "all inside the Visual Studio 2005 environment". Do the older SQL server tools for security and stored...
42
by: Paul | last post by:
Anyone know where I can find some good resources to help us choose between SQL and Oracle ( Progress Openedge as well ) . Any comments on what you would choose ?? We are creating a new Warehouse...
3
by: KidSensation | last post by:
Hello all, I ran into a couple applications written in c#, but we do not have the full version of visual studio.net 2003, so I thought they were most likely written in the beta version. After...
4
by: =?Utf-8?B?ZGlub28=?= | last post by:
We are currently in the process of upgrading our web server from Windows 2000 advanced server to Windows 2003 SP2. We have few ASP.Net applications built with .NET framework 1.1 running on the web...
4
by: Hrsoft | last post by:
Dear Friends My developer environmment has a Windows 2000 SP4 Server, and I cant to update to 2003 or 2008, for reasons of... money. But, I need to install in this 2000 Server SP4 the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.