For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Webcontrols > October 2006 > Request for the permission of type System.Web.AspNetHostingPermission failed









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Request for the permission of type System.Web.AspNetHostingPermission failed
Allan Ebdrup

2006-10-30, 7:33 pm

I'm using dotNet 2.0 and VS2005.
I've got a class library where I've created a webcontrol (Inherits from
GridView).
The dll for the class library resides on a different server (development
server)
Now I have a website ASP.Net 2.0. When I add a reference to the dll I don't
get my control in the toolbox, and try to right click on the toolbox, select
"Choose Items", select "Browse" find the dll on the other server and try to
add it I get the error: "Request for the permission of type
System.Web.AspNetHostingPermission failed"

I've tried to go to my Web.config an add:
<configuration>
<system.web>
<trust level="Full" originUrl=""
processRequestInApplicationTrust="false" />
in the web.config.
It doesn't do any difference.

How do I set the permissions so I can use my webcontrol?

Kind Regards,
Allan Ebdrup


Allan Ebdrup

2006-10-30, 7:33 pm

found a solution here:
http://support.microsoft.com/?id=320268


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com