Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
Welcome to the p2p.wrox.com Forums.

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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2009, 03:35 PM
Registered User
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need permissions help...

Hello,

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..
 
Old September 20th, 2009, 07:26 PM
Wrox Author
 
Join Date: Aug 2009
Location: Parker, CO
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Chris
__________________
Chris Hammond
Wrox Author
 
Old September 20th, 2009, 09:55 PM
Registered User
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error after configuration

Thank you for your time and response.

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.

Stack Trace:


[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52
 
Old September 20th, 2009, 10:23 PM
Wrox Author
 
Join Date: Aug 2009
Location: Parker, CO
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
Chris Hammond
Wrox Author
 
Old September 20th, 2009, 10:50 PM
Registered User
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Chris,

Thanks for your prompt response...

Got the solution to this:

"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."

Here - http://dbvt.com/blog/post/AspNetHost...7.aspx#comment.

Last edited by dotnetsteve; September 24th, 2009 at 12:56 AM..




Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about permissions grstad Classic ASP Databases 25 March 18th, 2006 04:20 AM
database permissions marmer All Other Wrox Books 1 November 15th, 2004 09:46 AM
GroupIDs and Permissions gmoney060 Classic ASP Basics 2 August 11th, 2004 09:49 PM
Permissions rwalker Crystal Reports 1 June 23rd, 2004 04:33 PM
File Permissions rwalker ASP.NET 1.0 and 1.1 Basics 5 April 20th, 2004 12:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.