This is a migrated thread and some comments may be shown as answers.

[Solved] SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jesse Sanders
Top achievements
Rank 1
Jesse Sanders asked on 15 Dec 2010, 06:57 PM
I want to pass this along in case anyone else encounters the same issue.  I recently upgraded my components to the latest release and all of a sudden I am getting errors around permissions:

SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission...

I scrambled to get this fixed and had a hard time finding a solution until I found this article:

http://dbvt.com/blog/post/AspNetHostingPermission-Security-Exception-Fix-with-Ajax-in-IIS7.aspx

My application is installed in IIS7 and I was able to fix this issue by setting 'Load User Profile' equal to true on my application pool...

I hope this helps someone else out...

Jesse

1 Answer, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 2
answered on 08 Jan 2011, 01:20 AM
This solution worked for me.  Sure would like to know why it has to be that way.

Intestingly enough, the website I'm working on I started using only the RadRotator.  Everything was working fine for several hours while I was developing and all of sudden I started getting the security error.  I just hit refresh after changing some CSS on the page and got the error.  Strange.

Tony
Tags
General Discussions
Asked by
Jesse Sanders
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 2
Share this question
or