BOOK: DotNetNuke 5 User's Guide: Get Your Website Up and Running
This is the forum to discuss the Wrox book DotNetNuke 5 User's Guide: Get Your Website Up and Runningby Christopher J. Hammond, Patrick Renner, Shaun Walker (Series Editor) ISBN: 978-0-470-46257-7
You are currently viewing the BOOK: DotNetNuke 5 User's Guide: Get Your Website Up and Running section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
For Windows 7, how do enable the website user account "AppPool\DefaultAppPool"?
- the website user account must have Read, Write, and Change Control of the root website directory and subdirectories ( this allows the application to create files/folders and update it’s config files), This account is different depending on the version of the OS/webserver, please see the list below for the correct account
- If using Windows XP Professional - IIS5.1 this is the {Server}\ASPNET User Account. Note: Windows XP can be configured to run using simple security. By default it is turned off in Windows XP Professional when it joins a domain, but if running standalone you will need to disable it to access the more detailed file sharing dialog. See http://duxcw.com/faq/win/xp/simpshare.htm for more details.
- If using Windows 2003 (IIS6), Windows Vista (IIS7) or Windows 2008 (IIS7) this is the NT AUTHORITY\NETWORK SERVICE User Account. - If using Windows 2008 R2 (IIS 7.5) or Windows 7 (IIS7.5) this is the IIS AppPool\DefaultAppPool User Account
Last edited by dotnetsteve; September 20th, 2009 at 06:12 PM.
I haven't had a chance to track this down further, but what I've done to make DNN work in IIS7.5 is to setup the application pool to run under the Network Service account instead of the DefaultAppPool account.
I set permissions for Network Service on the Dotnetnuke folder as instructed, set up DNN as an app and ensure SQL was installed (note I have succesfully installed 4.9 but 5.x is giving me grief).
When accessing the site page to initiate the install here is what the page returns:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Besides setting it on the folder, you need to change the Identity for the AppPool from the IIS Manager, change it to use the network service account, rather than the default identity.
"Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."