Repackaging

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

0000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE

79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E82

1C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8

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.

Success

============================================================

Advertisements