Re: Security: Shared Drive and EXE
From: Anders Norås [MCAD] (anders.noras_at_objectware.no)
Date: 12/16/04
- Next message: John: "Programmatically access Cascading Style sheets"
- Previous message: wangyk: "Re: Download a file from internet"
- In reply to: Eric: "Security: Shared Drive and EXE"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Dec 2004 07:43:09 +0100
> I have an WinForms-Exe which will be started from a Shared Network-Drive.
> Without configuration I get a security exception (FileIO-Permission).
This is because Code Access Security (CAS) gives the network drive intranet
premissions.
> Which is the best way to give this EXE or drive the same rights as an EXE
> in
> 'Local Computer' zone?
The best way to do this is to add a new code group with an URL membership
permission and gratn this group full trust. This can be done with the .NET
Configuration Tool or with the caspol command:
caspol -machine -addgroup 1 -url file://o:/* FullTrust -name "My network
drive (o)"
Anders Norås
http://dotnetjunkies.com/weblog/anoras/
- Next message: John: "Programmatically access Cascading Style sheets"
- Previous message: wangyk: "Re: Download a file from internet"
- In reply to: Eric: "Security: Shared Drive and EXE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|