How Do I Allow my Visual Studio .NET Projects to Run from a Network Location?

Posted by: Imar Spaanjaars at Saturday, February 26, 2005 4:48:08 PM in: VS.NET 2003

When you try to create a new project in Visual Studio .NET 2003 on a network drive, you might get the following error:

The project location is not fully trusted by the .NET runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may receive unexpected security exceptions. Click OK to ignore and continue. Click CANCEL to choose a different project location.

You get this error because by default .NET framework does not fully trust network locations. It's easy, however, to grant this trust to your projects, or your entire Visual Studio Projects folder.

Read on ... 1