This dialog box appears if you try to create a new client project or open an existing 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 try to debug or run from this location.
A local folder that is mapped to a network, such as the Documents and Settings folder, is not a trusted location. Therefore, solutions that are saved in mapped folders, which can include solutions that have been downloaded from the Internet, trigger this dialog box.
Note: |
|---|
All versions of
Visual Studio 2008 and Visual Web Developer 2008 Express Edition trigger this dialog box when you create a Visual Basic or C# project on a UNC path.
|
You can modify the security policy of the file share to prevent this dialog box from appearing. For more information, see Configuring Security Policy.
The following tools modify the policy affecting the file share:

Mscorcfg.msc
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
Start Mscorcfg.msc.
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.
Note: |
|---|
Make sure to add the asterisk at the end of the path.
|
Choose Use existing permission set and select FullTrust, and then click Next.
Click Finish.
Restart Visual Studio.

Caspol.exe
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

See Also