Thursday, September 13, 2007

Allowing Visual Studio .NET Add-ins to load via a network share

We recently migrated to using a central file storage for our My Documents and this now means the the My Documents/Visual Studio 2005/Add-ins now lives on a network share. To allow .NET to load the add-ins you have to run CasPol.exe to change the permissions on the drive.

The below will grant full trust (least secure) privileges to the share. Read more about it here.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>CasPol.exe -m -ag 1.2 -url file://machineNameGoesHere/shareName/* FullTrust

Happy coding!

No comments: