Security exception when calling managed dll that calls unmanaged COM object
From: Caleb Cha (anonymous_at_discussions.microsoft.com)
Date: 01/29/04
- Next message: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Previous message: Michel Gallant: "Re: .NET PKCS#7 ? Where to find it ?"
- Next in thread: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Reply: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 29 Jan 2004 14:51:11 -0800
I have a bit of an odd scenario.
I have a c# exe that is dynamically loading a C# class library on startup. The class library references a COM object written in unmanaged c++.
>From whe exe when I call a function in the c# class library and it in turn calls a function in the COM object I get a security exception.
"An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
Additional information: System.Security.Permissions.SecurityPermission"
I tried doing a [assembly:AllowPartiallyTrustedCallersAttribute] in the my c# class library but it didn't help.
Thank in advance for any help
Caleb
- Next message: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Previous message: Michel Gallant: "Re: .NET PKCS#7 ? Where to find it ?"
- Next in thread: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Reply: Guillermo Proano [MS]: "RE: Security exception when calling managed dll that calls unmanaged COM object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|