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.
Note: |
|---|
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.
Note: |
|---|
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:
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
For more information about how to use the Caspol.exe tool, see Configuring Permission Sets Using Caspol.exe.
Other Resources