While doing some .NET development in C# (which is turning out to be a really fun language by the way) for a new project I’m working on, I came across this error:
The project location is not trusted. Running the application may result in security exceptions when it attempts to perform actions which require full trust.
This will happen when you have your Visual Studio project on a mapped drive. Here’s how you fix it:
C:\> caspol -q -machine -addgroup 1 -url file://U:/* FullTrust -name "U Drive"
Of course, caspol needs to be in your path in order to execute it, and since the .NET SDK installer doesn’t update the system path for some reason, you’ll probably have better luck running it with the full path: