DotNetNuke SecurityException AspnetHostingPermission


tp_vol4_003

Yesterday I was setting up DotNetNuke for a designer on a computer at a corporate location so that he could start working on CSS for some of our custom modules.  He had an earlier version of DNN installed, so you’d think that it would “just work” but there seems to be a new module or something going on that caused the AspnetHostingPermission exception to get thrown so that we couldn’t even run the web site.

I hate setting up development computers at corporate locations.  Everything that works fine for me always seems to take just as long if not longer to set up there (wherever “there” is.)

There is a simple fix to this error.  Go into the IIS manager and select the AppPool that your web app is using.  Click the “Advanced Settings” link that you’ll find on the right-hand panel.

In the new dialog that shows up, you’ll see “Process Model” > “Identity”.  Change that identity to “NetworkService” and OK out.

Everything SHOULD work now.  At least it did for me.

 


Other post in DotNetNuke - Module Development
Ads by Lake Quincy Media

Other Related Items:

Professional DotNetNuke 5: Open Source Web Application Framework for ASP.NET (Wrox Programmer to Programmer)Professional DotNetNuke 5: Open Source Web Application Framework for ASP.NET (Wrox Programmer to Programmer)DotNetNuke creator Shaun Walker leads this superlative author team of MVPs while delivering the latest update of a bestseller. They offer complete cov... Read More >
Professional DotNetNuke Module ProgrammingProfessional DotNetNuke Module Programming

This book was written to provide insight into the development techniques needed (and the options available) to work within the DotNetNuke f... Read More >

DotNetNuke 5 User's Guide: Get Your Website Up and Running (Wrox Programmer to Programmer)DotNetNuke 5 User's Guide: Get Your Website Up and Running (Wrox Programmer to Programmer)

An authoritative introduction to implementing DotNetNuke Web sites, by experienced DotNetNuke implementers and trainers

An impressive aut... Read More >

Related Post

2 Responses to “DotNetNuke SecurityException AspnetHostingPermission”

  • I have ran into this issue a LOT with windows 7 and windows 2008. My fixes for it are basically to ensure that the App Pool user account belongs to IIS_IUSRS group and and to grant the IIS_IUSRS group RWX privileges on the site directory. For DNN, I grant Full privileges.

    • Dave:

      While it “works”, I wouldn’t do that on a production server. Sounds like a security risk to me.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor