Adding network paths as Trusted locations in VS.NET

Unlike Visual Studio 6 or other COM based applications, VS.NET by default, does not allow opening the projects from the network. To open the projects from network paths, first they need to be added as trusted zones. To add network drives as trusted path in VS.NET, run the following commands.

Go to C:WINNTMicrosoft.NETFrameworkv1.0.3705 and one has to run the following commands

caspol -m -ag 1.2 -url file:///H:/* FullTrust

Run below command to remove the existing machine wide config info, if nereded

caspol -reset

Again run the command "caspol -m -ag 1.2 -url file:///H:/* FullTrust" to set the path

To verify run caspol -lg


C:WINNTMicrosoft.NETFrameworkv1.0.3705>caspol -lg

Microsoft (R) .NET Framework CasPol 1.0.3705.0

Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.

Security is ON

Execution checking is ON

Policy change prompt is ON

Level = Machine

Code Groups:

1. All code: Nothing

1.1. Zone – MyComputer: FullTrust

1.1.1. StrongName – 00240000048000009400000006020000002400005253413100040




A12436518206DC093344D5AD293: FullTrust

1.1.2. StrongName – 00000000000000000400000000000000: FullTrust

1.2. Zone – Intranet: LocalIntranet

1.2.1. All code: Same site Web.

1.2.2. All code: Same directory FileIO – Read, PathDiscovery

1.2.3. Url – file://H:/*: FullTrust

1.3. Zone – Internet: Internet

1.3.1. All code: Same site Web.

1.4. Zone – Untrusted: Nothing

1.5. Zone – Trusted: Internet

1.5.1. All code: Same site Web.




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.