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 ...Installing on Windows 7 - Request for the permission of type Installing on Windows 7 - Request for the permission of type 'System.Web.AspNetHostingPermission
Previous
 
Next
New Post
9/17/2009 1:45 AM
 

I'm trying to install DNN 5.1.2 on Windows 7 Ultimate. When I try to run the app by typing //localhost/DotNetNuke in the browser's address bar I get the Server Error included below. However when I run DotNetNuke from within Visual Studio 2008 SP1, I get the DNN Installation Wizard. Sounds like an issue with permissions on IIS but how do I troubleshoot this?

The IIS_IUSRS group has Full Control on C:\DotNetNuke and C:\inetpub\wwwroot\*..DotNetNuke is configured as an IIS Application.

Any suggestions?

Thanks,

Scott

Server Error in '/DotNetNuke' 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

 
New Post
9/17/2009 10:16 AM
 

First, the IUSRS group may not be what needs access, did you read the install documentation?  It is likely the NetworkService account that needs access.

Jeff

 
New Post
9/17/2009 2:14 PM
 

For Windows 7/Windows 2008 R2 , the default account is called “ApplicationPoolIdentity” , so this is the account that needs the usual permissions on the website.  This account is not a "real" user account though. To add permissions for it on your website, you will need to open up Windows explorer and do the following:

  • Right click the website folder and select "Properties"
  • Select the "Security" tab
  • Click the "Edit" and then "Add" button
  • Click the "Locations" button and make sure you select your machine.
  • Enter "IIS AppPool\DefaultAppPool" in the "Enter the object names to select:" text box.
  • Click the "Check Names" button and click "OK".
  • You can now select the necessary permissions (typically read, write and modify permissions for the folder and all subfolders is the easiest permission to set)

Note: if you look in document/readme.txt you'll see a short set of install instructions including " - If using Windows 2008 R2 (IIS 7.5) or Windows 7 (IIS7.5) this is the IIS AppPool\DefaultAppPool User Account."

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/17/2009 2:48 PM
 

So far as file permissions go, I haven't had any trouble on Windows 7 sticking to NETWORK SERVICE as the account that I'm giving access to.  Also, the name of the user is actually the name of the app pool that the website is running under.  So, if you're in the Default App Pool, it'll be IIS AppPool\DefaultAppPool (as Cathal said).  But if your site is running under an app pool named DNN, the user will be IIS AppPool\DNN.

When I ran across that error (about the AspNetHostingPermission), I found some website that pointed me to make a change on the app pool's configuration.  In the app pool's Advanced Settings, I had to change the Load User Profile setting to True.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
9/18/2009 12:22 PM
 

Changing the application pool identity to network service is fine, and will work perfectly well - asp.net doesn't care what account it runs under, only that the account has sufficent permissions. However, the DefaultAppPool identity has some benefits - first of all it's slightly more secure in that it provides an additional isolation layer between any websites that may share the same application pool, and secondly it can be used as a replacement for IUSR for anonymous users (and will add a secondary level of isolation i.e. you can ACL permissions to files for the anonymous user, but also require them to be accessing those files via a site running under a cetain app pool)

This is a little old, but still valid - http://blogs.iis.net/webtopics/archive/2009/03/13/changes-to-application-pool-identities-in-iis-7-5-beta.aspx

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Installing on Windows 7 - Request for the permission of type Installing on Windows 7 - Request for the permission of type 'System.Web.AspNetHostingPermission


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