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

"Access to the path "...PortalCfg.xml" is denied

If I try to make any changes to the ASP.NET Portal Starter kit it fails with
an access denied error.

This was working when I left last week and is failing today. I don't
remember changing anything, but I guess something had to be changed. I
have checked NTFS permissions and the ASPNET account has full control on the
parent directory of that XML file and on the file itself. I have also
checked in IIS, and the Virtual Directory has "write" allowed. The funny
thing is that the change I am trying to make works! So if I reload the page
I see the change, but attempting to make another change results in the
error.
Here is the full error:
(I can post the entire stack trace if you want)

Server Error in '/PortalCSVS' Application.

Access to the path "C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCSVS\PortalCfg.xml" 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.UnauthorizedAccessException: Access to the path
"C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCSVS\PortalCfg.xml" 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.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

Source Error:

Line 776:
Line 777: // Object is evicted from the Cache here.
Line 778: siteSettings.WriteXml(configFile);
Line 779: }
Line 780: }
Nov 18 '05 #1
1 7007
I found out that in Windows 2003, ASPNET isn't used for permissions if IIS is running under "Network Service", so once I get permissions to the Network Service Account and did an IISRESET, it worked!
"Winterminute" <me@NOSPAMwinterminute.com> wrote in message news:OW**************@TK2MSFTNGP09.phx.gbl...
If I try to make any changes to the ASP.NET Portal Starter kit it fails with
an access denied error.

This was working when I left last week and is failing today. I don't
remember changing anything, but I guess something had to be changed. I
have checked NTFS permissions and the ASPNET account has full control on the
parent directory of that XML file and on the file itself. I have also
checked in IIS, and the Virtual Directory has "write" allowed. The funny
thing is that the change I am trying to make works! So if I reload the page
I see the change, but attempting to make another change results in the
error.
Here is the full error:
(I can post the entire stack trace if you want)

Server Error in '/PortalCSVS' Application.

Access to the path "C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCSVS\PortalCfg.xml" 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.UnauthorizedAccessException: Access to the path
"C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCSVS\PortalCfg.xml" 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.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.

Source Error:

Line 776:
Line 777: // Object is evicted from the Cache here.
Line 778: siteSettings.WriteXml(configFile);
Line 779: }
Line 780: }
Nov 18 '05 #2

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

Similar topics

8
by: Frances Del Rio | last post by:
I'm getting Getting "Access is Denied" on resizeTo and moveTo methods in IE (IE 6.0..) I saw two posts about this from 7/6 & 7/7.. I suspect, like previous poster said, that this has to do w/MS...
0
by: Ollie | last post by:
I am getting an Access Denied to COM+ catalog when attempting to save changes.... So I now use impersonation to impersonate an admin account on the machine so that I can create a transients...
4
by: Carlitos | last post by:
Hi there, I got a web application in vb.net that uploads a .zip file to a subfolder inside the root folder of the web application. c:\Inetpub\wwwroot\MyWebApp\uploaddir Then, a c# library...
6
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
1
by: James | last post by:
I am still having permission problems, but it has changed from a blanked 'Access Denied' error to this. I have ensured ASPNET user has 'full control' of the Temporary ASP.NET Files folder. ...
0
by: Rico | last post by:
Helolo, I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS. I am working on an XPPro machine with VS 2003. I have installed the remote debugging components on the server....
1
by: srivatsans101 | last post by:
Hi, I'm trying to access the IFrame contents on a HTML page as frames.document But in IE, I'm getting Access Denied Error Message. I tried to add the IFrame's Src WebSite (a...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have 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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.