|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
The Project Location is Not Trusted Dialog Box
This dialog box appears if you attempt to open or create a client project on a Universal Naming Convention (UNC) path. By default, a UNC path is not a trusted location for a project. Your project might not run correctly when you attempt to debug or run from this location. For more information, see Configuring Security Policy.
The following tools modify the policy affecting the file share:
One simple way to modify the policy affecting a file share is to give a specific file share FullTrust permission using Mscorcfg.msc. You must be an administrator on the computer to make this change.To give a file share FullTrust permission
Expand the Runtime Security Policy node, the Machine node, the Code Groups node, and the All_Code node, and then highlight the LocalIntranet_Zone node.
In the right pane, click Add a Child Code Group.
Choose Create a new code group, enter a name for the code group, and then click Next.
Choose a condition type of URL, and enter the UNC path to the share location of your project, using the format file://\\servername\sharename\* where \\servername\sharename is the name of the share. Click Next.
Make sure to add the asterisk at the end of the path.
Choose Use existing permission set and select FullTrust, and then click Next.
Restart Visual Studio.
Using caspol.exe to accomplish this change, you would use the following command line (you must be an administrator on the computer to make this change.):
caspol -m -ag 1.2 -url urlname FullTrust