Re: Shared Drive and EXE
From: Eric (fish11_at_earthling.net)
Date: 12/16/04
- Next message: Ravi: "WindowsIdentity.Impersonate() fails"
- Previous message: Nayana: "ActiveX component error"
- In reply to: Joe: "RE: Shared Drive and EXE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 16 Dec 2004 12:12:27 +0100
I received an answer in an other newsgroup from Anders:
> 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/
-- "Joe" <Joe@discussions.microsoft.com> schrieb im Newsbeitrag news:6799B509-6DCD-4186-98A1-A88343F3AC33@microsoft.com... > Exactly same trouble here. > May be here is post with solution?
- Next message: Ravi: "WindowsIdentity.Impersonate() fails"
- Previous message: Nayana: "ActiveX component error"
- In reply to: Joe: "RE: Shared Drive and EXE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|