Security Exception when using AJAX Control Toolkit on Server 2008
I am using the AJAX Control Toolkit for its tab UI and my compile and link cycles came and went without incident on my Vista development machine. However when I deployed to our integrated unit test environment on Server 2008, I got the following error when accessing the page with tabs:
System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed. Here is a screen shot for reference.
I did a lot of checking and I found articles that involved accessing the AJAX Control Toolkit on a different machine, but that was not my issue. After publishing via Visual Studio to our server, all dll’s were in their normal folders.
The solution was to change one of the defaults on the application pool for this website. The value is under the Process Model section in Advanced Settings and is Load User Profile. By default it is set to false which will emulate IIS6 behavior of not loading the user profile for the application pool identity. Setting it to true solved the problem.
That was it. Make sure you recycle your application pool and restart your web site.
Related
Categories
- AJAX (3)
- Computer Mutts (1)
- CSS (1)
- Entity Framework (1)
- Forms Authentication (1)
- Hyper-V Links (1)
- IIS (3)
- Microsoft Exchange 2007 (3)
- Networking (1)
- Programming (10)
- Security Links (1)
- SQL Server (1)
- SSL (1)
- Team Foundation Server 2010 (1)
- Visual Studio 2010 (1)
- WCF (6)
Recent Posts
Popular Posts
Archives
- April 2011 (1)
- March 2011 (1)
- December 2009 (3)
- October 2009 (5)
- September 2009 (2)
- August 2009 (3)
- July 2009 (2)
- May 2009 (2)
- April 2009 (5)
ISA Server Links
ORM Links
Miscellaneous Links
Blog Stats
- 63,147 hits
Recent Comments