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 ...Access to the path Access to the path 'Drive:\DotNetNuke\web.config' is denied
Previous
 
Next
New Post
1/29/2011 5:24 PM
 
Hi,
I am installing DNN 5.2.2 on server 2008 R2 64 bit with SQL 2008 R2 Express. I have assigned the rights of reading and writing to the user NETWORKING SERVICE to the web directory ( Drive E: ).
When i open http://localhost/ this error appears:
Access to the path 'E:\DotNetNuke\web.config' is denied

Why?
Thanks
 
New Post
1/29/2011 9:36 PM
 
IIS 7.x by default no longer uses networking service as the default user for each application pool instead it uses ApplicationPoolIdentity  which is a dynamically generated account that takes the form IIS APPPOOL\ApplicationPoolName,

This mechanism is designed to allow more granular control over access permissions - however - last time I looked at this area - the implementation was flawed - as there is no easy way to manage these dynamic users - or assign permissions to them as they do not appear in the acl object picker by default.

There are a couple of options to deal with this issue.

check your application pool and verify what identity is assigned to it

 --  if it is assigned to use  ApplicationPoolIdentity then you can either:

**  change it to Network Service -- if this is your own server and u have full control its not a bad idea
**  or create a new user "give it whatever name u like" - and assign that user as the pool identity - if you host many sites its not a bad idea for each to have its own identity user.  Maybe a user called wwwDNN_app_poll  or some such if your application pool is named wwwDNN 

********
 OR u can use the command line and icacls to assign the applicationpoolidentity user  to your web site directory.

icacls c:\inetpub\wwwdnn /grant "IIS APPPOOL\wwwdnn":(OI)(CI)(F)

this grants the user 'IIS APPPOOL\wwwdnn' full access account permission to the folder c:\inetpub\wwwdnn and its descendants
- where the name of the application pool associated with your website is wwwdnn


Note: after you have initially granted the application pool user access permissions using icacls  - you can then manage them using the normal gui security tab in internet explorer or from Edit Permissions in IIS.

Once you understand what is happening = the last option is the correct methodology to adopt long term - since it is the by design option - just a pity ms has not fully implemented its functionality in the access control list object picker.

Westa

 
New Post
1/30/2011 5:04 AM
 
Wes Tatters wrote:
IIS 7.x by default no longer uses networking service as the default user for each application pool instead it uses ApplicationPoolIdentity  which is a dynamically generated account that takes the form IIS APPPOOL\ApplicationPoolName,

This mechanism is designed to allow more granular control over access permissions - however - last time I looked at this area - the implementation was flawed - as there is no easy way to manage these dynamic users - or assign permissions to them as they do not appear in the acl object picker by default.

There are a couple of options to deal with this issue.

check your application pool and verify what identity is assigned to it

 --  if it is assigned to use  ApplicationPoolIdentity then you can either:

**  change it to Network Service -- if this is your own server and u have full control its not a bad idea
**  or create a new user "give it whatever name u like" - and assign that user as the pool identity - if you host many sites its not a bad idea for each to have its own identity user.  Maybe a user called wwwDNN_app_poll  or some such if your application pool is named wwwDNN 

********
 OR u can use the command line and icacls to assign the applicationpoolidentity user  to your web site directory.

icacls c:\inetpub\wwwdnn /grant "IIS APPPOOL\wwwdnn":(OI)(CI)(F)

this grants the user 'IIS APPPOOL\wwwdnn' full access account permission to the folder c:\inetpub\wwwdnn and its descendants
- where the name of the application pool associated with your website is wwwdnn


Note: after you have initially granted the application pool user access permissions using icacls  - you can then manage them using the normal gui security tab in internet explorer or from Edit Permissions in IIS.

Once you understand what is happening = the last option is the correct methodology to adopt long term - since it is the by design option - just a pity ms has not fully implemented its functionality in the access control list object picker.

Westa

 
Ok, I have create a new user named DNN_App_Pool  and assign that user as the pool identity and grants this user  full access account permission to the folder E:\DotNetNuke and its descendants. The DNN Configuration starts the wizard but in Configure Database Connection ( SQL 2008 R2 Express ) this error appears:
Connection Error(s):
Index #: 0
Source: .Net SqlClient Data Provider
Class: 14
Number: 15364
Message: Failed to generate a user instance of SQL Server. Only an integrated connection can generate a user instance. The connection will be closed.

I had created a database named DotNetNuke in mixed mode and I have inserted this in the fields:

server: .\SQLExpress
Filename: DotNetNuke
Integrated security: [ ]
User ID: sa
Password: MYPASSWORD
Run as db Owner: [x]

Why?
Thanks

 
New Post
1/30/2011 7:07 AM
 
Now you are hitting the ms-sql express 2008 config problems - the video linked below walks thru some of the issues and is pretty informative on the various oddness issues that the express free versions of ms products introduce out of the box in their default configurations. http://www.dotnetnuke.com/Resources/VideoLibrary/Viewer/TabId/1613/VideoId/140/Installing-DotNetNuke-With-The-Web-Platform-Installer.aspx You may also want to have a look at the blog below - it talks about using webmatrix to install dnn more easily http://www.dotnetnuke.com/Resources/Blogs/tabid/825/EntryId/2954/Installing-DotNetNuke-using-WebMatrix.aspx Westa
 
New Post
1/31/2011 6:05 AM
 
Ok, I have seen the video but it don't explain what to insert in the fields of Wizard Configure Database Connection:

Select Database: [x] SQL Server 2005/2008 ( Express) file

What I must insert in the fields:

Server: Only:  .\SQLExpress ?

And in the filed Filename: ?

As I had told you I have made a databse of name DotNetNuke under istance .\SQLExpress.

Thanking you in advance
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Access to the path Access to the path 'Drive:\DotNetNuke\web.config' 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