Blog Stats
  • Posts - 3
  • Articles - 0
  • Comments - 100
  • Trackbacks - 0

 

IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

I recently upgraded my office workstation to Windows 7 RC from Vista SP1. Everything in the upgrade went smoothly, until I after installed the IIS 7 server components and tested my sites on my local IIS server.

When loading any asp.net site, I received the following error:

Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

I configured my usual permissions for the temp folders, .NET Temp folders, Application Pool security accounts and IIS Virtual directories. After doing some digging, I found several articles that pointed to changing the Trust Levels in the Security Zones for the Machine to Full Trust, however this did not correct the issue.

Anyway ... After much trial and error, it seems that the Application Pool setting, "Load User Profile=True" was the solution. It was set to False by Default. This is not a new setting of the application pools in IIS7, but it is now visible in the console.

 

In Windows Vista SP1, IIS 7 by default sets LoadUserProfile=True for you automatically, however it was not available in the console. This is why in IIS 7 this issue was not encountered on my previous Vista Development station. In Windows 7 RC this option is available in the Application Pool Advanced Properties and is set to False by Default.

It seems on Vista there were many cases when this setting needed to be set to false, but was not accessible via the console. The .config file had to be changed manually. In Windows 7 RC this setting is now available.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar It worked, this would help those who fix the trust level and still getting the permission error on IIS 7 RC.

Thanks a lot! 5/26/2009 2:54 PM | Bob

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar IT WORKS...Thanks very much!! This saved me a lot of time goofing around in IIS 7 Settings!!! 6/13/2009 8:33 AM | Aboo Bolaky

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you, thank you, thank you....
I spent a lot of time on this 7/22/2009 11:27 AM | Steen

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Unbelievable Jonathan! Thank you so much! I have been studying this issue for days. THANKS AGAIN!

Todd 8/6/2009 1:38 PM | Todd Hinton

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar You have no idea how relieved I am to have found this. I have spent hours trying to get it working and to think, thats all it took! Thanks a bunch for posting this! 8/12/2009 9:42 AM | Jim

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks Jonathan, I have been trying to resolve this for a few days now but just could not find an example. Any way to do this without changing the setting, I have no access to my live server as it is a shared hosting server.
Thanks again, you rock! 9/15/2009 4:54 PM | Jack Smit

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks, that resolved our issue to.

One thing to note on tis, it seems to be being set randomly. It was setup correctly on my machine, but on another person's machine it was set incorrectly. 9/18/2009 3:49 PM | Ken

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you, thank you, thank you. Windows 7 Release Candidate (RC) IIS exception error System.Web.AspNetHostingPermission solved! Saved me so much time. 9/24/2009 4:39 PM | Ryan Wheale

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Where do I change this setting?

Been beating the head against the wall with IIS 7 and installing DotNetNuke 5.14 with SQL 2008.
10/24/2009 12:10 AM | Julie

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar You saved the day for me. You are a star mate. Thanx 10/29/2009 10:52 AM | Nimesh

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you! 11/8/2009 8:23 AM | Rick

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Does anyone know how the CPU limit really works, do I have to enter a percentile there or is it promille or what? 11/12/2009 5:38 AM | sexcam

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar But why does this need to be set to true? False means IIS 6 behaviour. This should work also I think? 11/18/2009 9:07 AM | Danny

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you, thank you, thank you - this resolved the trust issue on Windows 7 with dotnetnuke 5. 11/25/2009 4:06 PM | pwil

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Many thanks. The same behavior was found in Server 2008. Saved my day!
12/3/2009 3:35 AM | Ulf W

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks a lot. Your suggestion worked for me! 12/10/2009 6:45 PM | Siva

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar IT WORKS ....... yehaaaa........Thank you, your work saved my work und saved my day. 1/12/2010 3:08 AM | Gratis Sexcam

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Awesome! Thanxs for your post, it saved me a great deal of time. 1/15/2010 12:47 AM | Peterjp80

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you, your post solved my problem. 1/29/2010 1:26 AM | Subash

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks man! This fixed up my issue really good! 2/8/2010 2:04 PM | LB

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Sweet!!! Thank you sir. 2/8/2010 2:13 PM | PussyMill.com

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wonderful! Great job it helps me and saves my time too!!! 2/10/2010 7:18 AM | Rabia

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Fantastic! Every version of windows seems to make development and deployment so much more complicated and this issue is one of the most bizarre I have encountered in 10 years of web development. Thank you for the fix. 2/12/2010 1:32 PM | Ryan

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks a bunch! Been looking out for a solution for 2 hours. 2/19/2010 2:35 AM | Fish

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar THANKS FOR THIS TIP! HAS SAVED ME A MAJOR HEADACHE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 3/2/2010 10:17 AM | YEA BOIIIII!!!!

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wonderful! Thanks a lot for the information! 3/16/2010 9:17 AM | Prea

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks a lot!! didnt even know it could be bcos of windows 7 and iis 7.. thanks a lot! u are a life saver!!! 3/23/2010 10:40 AM | Lats

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar I could kiss u 3/29/2010 4:36 AM | I Conner

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar I looked everywhere - thanks! 3/29/2010 2:13 PM | Stephen

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Saved me a bunch of time there too. Not sure what it's set at in Windows Server, but at least I know what the problem is now. 3/30/2010 12:55 PM | phil

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Well done & thank you very much. Problem solved
5/6/2010 3:14 AM | Matt

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar i would let you marry my daughter if i had one.. thanks so much 5/11/2010 8:38 AM | dinesh

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar i like to fuck 7/15/2010 9:18 AM | sinann

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thankyou! This solved a problem I was stuck with 8/12/2010 12:29 PM | xavierx

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Hi Jonathan,
I was so frustrated trying to solve this error. Your solution did the trick. Thanks a lot.
Anand 9/22/2010 9:00 AM | Anandakumar

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks dude...you are the man 10/17/2010 5:51 PM | Saif

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Hi, its very nice informative site indeed. Appriciated
Keep it up : ) 10/21/2010 11:38 AM | pooja

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Hey, very informative and help full.
em empressed to see this kind a site .
Congrates 10/21/2010 11:55 AM | Lailla

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Good :) 10/21/2010 11:57 AM | Alizah

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Vista's really really tricky. Thanks for this Windows 7 guide. 10/21/2010 1:42 PM | Life Sayings

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wow very intersting comments i saw on this site
10/23/2010 4:37 AM | Alizah07

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wow Superb Commentsssssss 10/23/2010 4:53 AM | Alizah07

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar I still work without Vista its just not such way I liek to work with 10/27/2010 4:31 AM | fine

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar great post..thanks for the post.. 10/30/2010 7:20 AM | Pharmacy Tech

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar great post... fantastic... 11/3/2010 9:54 PM | semenax

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar nice stuff, i really like your article 12/2/2010 5:20 AM | 70-350

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar your style of writing is just amazing ...you have written an excellent post...Thanks 12/6/2010 9:26 AM | Nursing assistant salary

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar thank, good artikel 1/5/2011 11:20 AM | mik

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Your site is amazing 1/21/2011 12:43 AM | gloria

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Me too. Its wonder fully 1/21/2011 12:45 AM | vera

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Your site is realy amazing 1/24/2011 5:23 PM | tina

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar mo too really 1/24/2011 5:24 PM | dinagratis

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar very informative information......Thanx for sharing 1/26/2011 2:19 AM | presentation skills

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Yeah I got the same error before. I am thankful that I found this post and there is now a solution. 2/9/2011 2:09 AM | nono hair removal

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Well, what I'm interested in knowing is why the default setting changed in Windows 7 from Windows Vista SP1. Any ideas anyone? Is it just one of those Microsoft things? 2/16/2011 1:18 PM | ford fusion hybrid

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Well, what I'm interested in knowing is why the default setting changed in Windows 7 from Windows Vista SP1. Any ideas anyone? Is it just one of those Microsoft things? 2/16/2011 1:18 PM | ford fusion hybrid

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Well, after reading above complimenting comments I have also installed it on my screen. I should say, that in spite of y normal sceptisism, I find it working and even looking good.
2/21/2011 5:54 AM | CNA Training In Michigan

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar nice post..keep it up
thanks 3/8/2011 5:06 AM | medical assitant

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar super coole Seite haben Sie da. 3/11/2011 12:49 AM | Mike

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar thats a super cool info,,,thanks laser hair removal 3/13/2011 4:18 AM | laser hair removal

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Hi, love this post. Very interesting, I look forward to reading more of your work in the future. Keep up the good work.
3/13/2011 6:08 AM | roofing in manchester

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Very interesting post, extemely well thought out and put together. Keep up the good work.
3/14/2011 8:03 AM | seo manchester

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar total geile Seite 3/14/2011 8:14 AM | NIna

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Echt total nette und übersichtliche Seite 3/14/2011 8:15 AM | Chris

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Voll coole und übersichtliche Webseite. 3/14/2011 8:16 AM | Doris

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar echt nette und übersichtle Seite 3/15/2011 4:40 AM | www.viterium.com

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Sehr geil diese Seite. Hat mir in jedem Fall geholfen. Bedanke mich an dieser Stelle. 3/18/2011 10:29 AM | Bumsdieter

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks for a very nice post, very insight full. I learned a lot 3/28/2011 1:58 AM | Meratol

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Geile Seite weiter so 3/29/2011 12:47 AM | Camsex

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Super hier einfach weiter machen 3/29/2011 12:53 AM | Camsex

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar super Webseite haben Sie da. 3/30/2011 4:33 AM | kartenleger

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Extra geile Setie. WEtier so. 3/30/2011 4:34 AM | Hellsehen und wahrsagen

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar wow was für eine coole Seite 3/30/2011 4:35 AM | wahrsager, hellseher, kartenlege

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar I had the same problem. Damn Vista!
3/30/2011 4:01 PM | Linden Method for anxiety

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wow was fär eine Seite 3/31/2011 11:32 AM | Mike

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Voll geile Seite 3/31/2011 11:33 AM | Paul

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Wow echt coole Seit 3/31/2011 11:34 AM | Viki

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Sie haben eine tolle Seite 3/31/2011 11:35 AM | Kalr

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Nice page. I like it 3/31/2011 11:36 AM | Otto

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Ich muss sagen, dass mir diese Seite sehr gut gefällt. 3/31/2011 11:37 AM | Paual

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Echt coole Page 3/31/2011 11:38 AM | Ines

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar so cool site..plz keep up good working 3/31/2011 8:08 PM | sex cam

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Und weiter So leute ist einfach geil. Auch Camsex Girls beim Livesex warten auf dein besuch. 4/3/2011 5:46 PM | Sexcam

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar wow was für eine Seite 4/7/2011 1:31 AM | Sexcams, Camsex

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar IT WORKS...Thanks very much!! 4/7/2011 8:18 PM | Live

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Very good, thx its works! Auch hier erwartet euch geiler Webcam Sex für scharfe Stunden. 4/7/2011 8:22 PM | Joe

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks for the detailed description. She gave me a great help. 4/7/2011 8:27 PM | Celina

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar thanks for the very useful information - see you next time
Ivana 4/8/2011 12:52 PM | kartenlegen

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar thank you for this very interesting information 4/9/2011 7:06 PM | Cam2Cam

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks, this worked for me. When I searched for this error I kept hitting sites which recommended using CASPOL for a web site deployed to a UNC. 4/12/2011 8:03 AM | Chris

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar thanks buddy . 4/26/2011 2:39 AM | nisarg

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks this worked for me 6/8/2011 4:30 AM | Rich

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar this not work fr meeeeeeeee. KURVA DO PÍČE 8/29/2011 9:09 AM | holy shit

# Mr.

Gravatar Thank you!

Been struggling with this all day. 9/4/2011 6:38 PM | Joe Flabeets

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thanks Much!! Had this same problem on Windows 2008 R2 (Dotnetnuke installation) 11/29/2011 3:57 AM | Jeoff

# re: IIS System.Web.AspNetHostingPermission exception on Windows 7 RC

Gravatar Thank you! You save my time to troubleshoot this problem. 1/26/2012 2:07 PM | Abu

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © ProjectLawson