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)\PortalCS VS\PortalCfg.xm l" 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.Unauthor izedAccessExcep tion: Access to the path
"C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCS VS\PortalCfg.xm l" 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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) 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.Wr iteXml(configFi le);
Line 779: }
Line 780: } 1 7022
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!
"Winterminu te" <me@NOSPAMwinte rminute.com> wrote in message news:OW******** ******@TK2MSFTN GP09.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)\PortalCS VS\PortalCfg.xm l" 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.Unauthor izedAccessExcep tion: Access to the path
"C:\Program Files\ASP.NET Starter Kits\ASP.NET Portal
(CSVS)\PortalCS VS\PortalCfg.xm l" 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}\ASPNE T 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="tr ue"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAM E) 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.Wr iteXml(configFi le);
Line 779: }
Line 780: } This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Windows Updates
(Tools --> Windows Update in IE..) because this started happening to me
recently (ONLY in IE, works fine in N7), and I updated about...
|
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 subscriptions for a remote COM+ server, but
it is still failing with the "Access Denied" what do I need to do to get
this to work.....
I have used...
|
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 unzips it inside another subfolder inside the subfolder
where the .zip was uploaded.
|
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 had to manually install
all of the ODBC drivers and the rest of the DLL's, and now I am getting
"Access is Denied" errors on any page that uses ADODB....
|
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 original question, the
subject line is:
ADODB.NET and "Access Denied"
I have an ASP.NET page writtein in VB that uses ADODB. I just had to
| |
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.
However, there are no folders within this folder, so to me it looks more
like the files are missing rather than permission being denied...
I have...
|
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. Aside from having administrative
rights, I have also put myself in the Debugger Users group. I have added
ASPNET and even IUSR_SERVERNAME to the...
|
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 local/intranet hosted dynamic HTML page) to Trusted Sites list in IE Options.
|
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 same file name and
must have the same file name. I am essentially overwrite an existing file
that is being used by another user.
My question: Is...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |