Since I run my stuff in a VM I like to save my data on shares on the host. But then running and debugging (web) applications and tests from within Visual Studio has problems. How can I configure everything to run with FullTrust when it's started in Visual Studio?
Or how to just configure full trust for all network drives?
I have turned off UAC.
You'll have to use the caspol command-line command.
Open up a console-window, and type this command:
caspol -machine -addgroup <group_param> -url file://yournetworkdriveletter/* FullTrust -name somename
Note: the group_param
is the group to which you want to add your new zone, which will be 'Local Intranet'. You can execute caspol -lg
to see what the number of the local-intranet zone is on your system.
On my system, it is 1.2
So, the command you have to execute is:
caspol -machine -addgroup 1.2 -url file://driveletter/* FullTrust -name MyNewZoneName