Recent Posts:

Archives:

Blogroll:

Get Email Updates:
Enter your email address:

Sunday, 21 February 2010

IIS AspNetHostingPermission exception in Windows 7:

Problem
When loading any ASP.net site, you receive the following error:

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

Solution
In IIS set the Application Pool setting, Load User Profile to "True".

In IIS, click Application Pools:


Under the Actions side menu, click Set Application Pool Defaults...:


In Application Pool Defaults, set Local User Profile to "True" and click OK


Newer›  ‹Older