Re: Security: Shared Drive and EXE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Anders Norås [MCAD] (anders.noras_at_objectware.no)
Date: 12/16/04


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/



Relevant Pages

  • Re: Shared Drive and EXE
    ... I received an answer in an other newsgroup from Anders: ... > Without configuration I get a security exception. ... This is because Code Access Security gives the network drive intranet ... The best way to do this is to add a new code group with an URL membership ...
    (microsoft.public.dotnet.security)
  • Re: Running .NET exe from a network share
    ... Configuration of your System and Code. ... Code Access Security] ... Beste Grüsse / Best regards / Votre bien devoue ... What is the solution and which action must be done on workstation by our client to be able to run this .NET exe from the server share? ...
    (microsoft.public.dotnet.security)
  • Re: Running .NET exe from a network share
    ... is that an action MUST be done on any computer wanted to access and run this executable from the network share. ... Configuration of your System and Code. ... [.NET Framework Developer's Guide ... Code Access Security] ...
    (microsoft.public.dotnet.security)
  • Re: Running .NET exe from a network share
    ... Configuration of your System and Code. ... [.NET Framework Developer's Guide ... Code Access Security] ... [Understanding .NET Code Access Security] ...
    (microsoft.public.dotnet.security)