Re: Shared Drive and EXE

From: Eric (fish11_at_earthling.net)
Date: 12/16/04


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? 


Relevant Pages

  • Re: Security: Shared Drive and EXE
    ... > 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.framework)
  • 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)
  • Re: Unknown Internal OS Error...?
    ... Usually the configuration isn't available from the "outside" or am I missing ... Anders ... Prev by Date: ...
    (comp.databases.paradox)