Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
 The Project Location is Not Trusted...
Collapse All/Expand All Collapse All
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

The Project Location is Not Trusted dialog box appears if you try to create a new client project or open an existing project by using 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, opening a solution that is saved in a mapped folder, which can include a solution that has been downloaded from the Internet, can cause this dialog box to be displayed.

NoteNote:

All versions of Visual Studio 2008 and Visual Web Developer 2008 Express Edition display this dialog box when you create a Visual Basic or C# project using 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 can be used to modify the policy affecting the file share:

The .NET Framework Configuration tool (Mscorcfg.msc) is a Microsoft Management Console (MMC) snap-in that enables you to manage and configure assemblies in the global assembly cache, adjust code access security policy, and adjust remoting services. One simple way to modify the policy affecting a file share is to give a specific file share FullTrust permission using the Mscorcfg.msc tool. You must be an administrator on the computer to make this change.

If you want to manage .NET Framework 2.0 and later versions by using the configuration tool, you must install the .NET Framework 2.0 SDK.

NoteNote:

The .NET Framework versions 3.0 and 3.5 are built incrementally on the .NET Framework version 2.0. The configuration tool included in the .NET Framework 2.0 SDK is the latest version of the tool. You can use this version to manage code access security policy for the .NET Framework 3.0, 3.5, and later versions also.

You can run the Mscorcfg.msc from the following locations:

  • The Start menu

  • The command line

  • The Microsoft Management Console

For information about how to run the Mscorcfg.msc tool, see .NET Framework Configuration Tool (Mscorcfg.msc).

The CAS Policy tool (Caspol.exe) enables users and administrators to modify security policy for the computer policy level, the user policy level, and the enterprise policy level. The best way to run the Caspol.exe tool is from the Visual Studio command prompt. You must be an administrator on the computer to make security policy changes.

To run the Caspol.exe tool

  • From the Visual Studio command prompt, enter the following command:

    caspol -m -ag 1.2 -url urlname FullTrust
    

For more information about how to use the Caspol.exe tool, see Configuring Permission Sets Using Caspol.exe.

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 | Site Feedback
Page view tracker