Fixing Visual Studio’s error ‘The project location is not trusted’

Scenario: My base machine (mac) hosts all my source code as I want a single code point to backup. My Windows development environment is in a Virtual Machine using VMWare Fusion. (I believe this issue will apply to VMWare Workstation, Player and Fusion).

I am using the VMWare built in “Share Folder” option, and I’m sharing only the “win” folder in my ~\src\ folder.

Screen shot 2009-09-29 at 10.19.55 PM

Issue: When trying to open source using Visual Studio 2008 I’m presented with the dreaded “The project location is not trusted” error.

Solution: Open a Command-Line box (Start > Run > cmd > OK)

cd \Windows\Microsoft.NET\Framework\v2.0.50727
caspol -m -ag 1.2 -url \\.host\* FullTrust

If you’re not using VMWare or have a share elsewhere substitute “\\.host\*” for your shared folder.

References: The project location is not trusted dialog box and The project location is not trusted dialog box when trying to use a Network Location

Comments are closed.