Security: Shared Drive and EXE

G

Guest

Hi,

I have an WinForms-Exe which will be started from a Shared Network-Drive.
Without configuration I get a security exception (FileIO-Permission).

Which is the best way to give this EXE or drive the same rights as an EXE in
'Local Computer' zone?

- Sign the EXE and use the 'Trust assembly' wizard?
- Or add the drive to another zone?

Or are there other possibilites?

Thanks
Eric
 
A

Anders Norås [MCAD]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top