G
Guest
I have a component dll that lives in the GAC. One of the classes in the
component dll calls unmanaged code. I use the component dll from an ASP.NET
application that I'm trying to get to run under medium trust. My call looks
like this:
ASP.NET Application ---> Component in GAC ---> Unmanaged code.
when my component in the GAC calls the unmanaged code, .NET throws a
security exception. I was under the impression that all code in the GAC runs
under full trust? In order to get this to work without changing the ASP.NET
app back to full trust, I have to explicitly Assert the unmanaged code
permission in my component. Is there an implicit LinkDemand requirement on
all calls to unmanaged code or something like that?
Thanks in advance for any help,
Jeff
component dll calls unmanaged code. I use the component dll from an ASP.NET
application that I'm trying to get to run under medium trust. My call looks
like this:
ASP.NET Application ---> Component in GAC ---> Unmanaged code.
when my component in the GAC calls the unmanaged code, .NET throws a
security exception. I was under the impression that all code in the GAC runs
under full trust? In order to get this to work without changing the ASP.NET
app back to full trust, I have to explicitly Assert the unmanaged code
permission in my component. Is there an implicit LinkDemand requirement on
all calls to unmanaged code or something like that?
Thanks in advance for any help,
Jeff