Re: Web Part and COM Interop
From: Bil Simser [MVP] (bsimser_at_shaw.ca)
Date: 08/31/04
- Next message: Bil Simser [MVP]: "Re: WSS List info used in 'normal' ASP.NET web sites?"
- Previous message: FredF: "administrator of site cannot connect"
- In reply to: Eric Johnson: "Web Part and COM Interop"
- Next in thread: Eric Johnson: "Re: Web Part and COM Interop"
- Reply: Eric Johnson: "Re: Web Part and COM Interop"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 31 Aug 2004 17:19:07 -0600
"Eric Johnson" <ej@ejinnovations.com> wrote in message
news:XR1Zc.491414$6p.94863@news.easynews.com...
> I'm writing a Web Part which needs to use COM Interop for its
> functionality, but having a security problem when I try to use anything in
> the Interop assembly. The exception thrown is
> System.Security.Permissions.SecurityPermission.
>
> I made a SafeControl entry in the web.config file for the interop assembly
> but that didn't help. Nor did using the .NET Framework Wizard to fully
> trust this assembly.
>
> What else needs to be changed in order for this to work? Is there a way
> to find out which resource is being accessed by the interop assembly?
Eric,
Any .NET managed assembly needs full trust to use COM interop. Basically
your assembly needs god access.
-Bil
- Next message: Bil Simser [MVP]: "Re: WSS List info used in 'normal' ASP.NET web sites?"
- Previous message: FredF: "administrator of site cannot connect"
- In reply to: Eric Johnson: "Web Part and COM Interop"
- Next in thread: Eric Johnson: "Re: Web Part and COM Interop"
- Reply: Eric Johnson: "Re: Web Part and COM Interop"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|