Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
 The Project Location is Not Trusted...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Web Developer
The Project Location is Not Trusted Dialog Box

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.

NoteNote:

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:

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

  1. Start Mscorcfg.msc.

  2. 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.

  3. In the right pane, click Add a Child Code Group.

  4. Choose Create a new code group, enter a name for the code group, and then click Next.

  5. 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.

    NoteNote:

    Make sure to add the asterisk at the end of the path.

  6. Choose Use existing permission set and select FullTrust, and then click Next.

  7. Click Finish.

  8. 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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Same warning appears for downloaded content on Vista and later      ryandev   |   Edit   |   Show History
http://www.cjcraft.com/Blog/2007/09/02/TheProjectLocationIsNotTrusted.aspx

To fix this, unblock (File Properties->General->Unblock) the zip file before you extract.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker