Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
  #4 (permalink)  
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
Reply With Quote
  #5 (permalink)  
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about permissions grstad Classic ASP Databases 25 March 18th, 2006 03:20 AM
database permissions marmer All Other Wrox Books 1 November 15th, 2004 08: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



All times are GMT -4. The time now is 01:57 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.