Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 6 throws an authentication acception; F:\DNN\Web.Config access is denied.DNN 6 throws an authentication acception; F:\DNN\Web.Config access is denied.
Previous
 
Next
New Post
8/22/2012 7:09 PM
 

Hello all,

I am currently having the following issue with my newest DNN installation; The error is as follows:

System.UnauthorizedAccessException: Access to the path 'F:\DNN\web.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32
rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options,
SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare
share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare
share)
at System.Xml.XmlDOMTextWriter..ctor(String filename, Encoding encoding)
at System.Xml.XmlDocument.Save(String filename)
at DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceManager.AddConfiguration()
at DotNetNuke.Services.Install.InstallWizard.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean
includeStagesAfterAsyncPoint)
Return to Site. 

This is driving me crazy, as I'm pretty sure that I gave the Network Service identity full control of the DNN folder under F:\.  And even with the permission modification, I'm still getting the error; What am I missing?  Thanks.  if there is any more information you need, please let me know, and I will provide it.  I'm running this on Server 2008 R2 SP1.  Thank you so much to anyone for any feedback you have.  It is very much appreciated.              

 
New Post
8/22/2012 10:05 PM
 

Apparently the ASP.Net worker process account (application pool identity account) assigned to the site's IIS application pool is missing the required file system permissions (full permissions including modify) or the web.config file itself has its read-only attribute set.

It is quite likely for Windows Server 2008 R2 that the ASP.Net worker process account is NOT Network Service but rather a pseudo-account or custom account. If you have control of the server to permit setting file system permissions yourself, try adding the pseudo-account "IIS AppPool\DefaultAppPool" to the security tab for the installation's root folder and granting it full permissions on the root folder. Check that these same permissions propagate to all child folders.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
8/24/2012 8:53 PM
 
Yes; I figured         that one out.  I actually changed the app pool account to network service, which has full control, so it's good now. 
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 6 throws an authentication acception; F:\DNN\Web.Config access is denied.DNN 6 throws an authentication acception; F:\DNN\Web.Config access is denied.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out