Home All Groups Group Topic Archive Search About

Request for the permission of type 'System.Web.AspNetHostingPermission...' failed

Author
19 Sep 2006 8:57 PM
Pablo
I need to know the types stores in a dll module (is an application that
is using plugins).

To read types I create a new AppDomain and then I load the assembly in
this new domain.

But when I try to access to Assembly.GetTypes() .net throw the next
exception:
Request for the permission of type
'System.Web.AspNetHostingPermission...' failed


(Some types in the dll inherit from System.Web.UI.Control)


Thanks,
Pablo

Author
23 Sep 2006 2:03 PM
Nicole Calinoiu
Might you be able to provide a small sample (à la
http://www.yoda.arachsys.com/csharp/complete.html) that demonstrates the
problem?


Show quoteHide quote
"Pablo" <pri***@adinet.com.uy> wrote in message
news:OMi7%239C3GHA.4924@TK2MSFTNGP05.phx.gbl...
>I need to know the types stores in a dll module (is an application that is
>using plugins).
>
> To read types I create a new AppDomain and then I load the assembly in
> this new domain.
>
> But when I try to access to Assembly.GetTypes() .net throw the next
> exception:
> Request for the permission of type 'System.Web.AspNetHostingPermission...'
> failed
>
>
> (Some types in the dll inherit from System.Web.UI.Control)
>
>
> Thanks,
> Pablo