.NET: how to programatically give assembly loaded from network the same trust as those loaded from local host?
From: JS (someone_at_somewhere.com)
Date: 06/23/03
- Next message: Stephen McCloskey [MSFT]: "Re: .net config help"
- Previous message: Michael Giagnocavo [MVP]: "Re: Unique ID Generator"
- Next in thread: Stephen McCloskey [MSFT]: "Re: how to programatically give assembly loaded from network the same trust as those loaded from local host?"
- Reply: Stephen McCloskey [MSFT]: "Re: how to programatically give assembly loaded from network the same trust as those loaded from local host?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Jun 2003 14:49:15 -0400
I have a .net assembly accesing COM service, the .net assembly resides on
network drive. When the assembly is run, I got 'securitypermission'
exception. If in '.net wizard->adjust .net security->adjust the security
level for each zone', I gave 'local intranet' zone 'full trust'; the same as
for 'my computer' zone, then there is no such exception.
How do I programatically do so? When I load the assembly (and run the
assmbly) in a program, I would like to give this assemnly full trust in this
program so that it can access COM service.
If this assembly is not using COM service, I think that there won't be such
a problem.
Thanks.
- Next message: Stephen McCloskey [MSFT]: "Re: .net config help"
- Previous message: Michael Giagnocavo [MVP]: "Re: Unique ID Generator"
- Next in thread: Stephen McCloskey [MSFT]: "Re: how to programatically give assembly loaded from network the same trust as those loaded from local host?"
- Reply: Stephen McCloskey [MSFT]: "Re: how to programatically give assembly loaded from network the same trust as those loaded from local host?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]