Wednesday 17 March 2010

Using CasPol to Fully Trust a Share


I have required CasPol when I've had a DLL available on a UNC path which is consumed by my application. If the assembly is not fully trusted, .NET will throw a security Exception because its not fully trusted. This is where CasPol comes into play...


CasPol on MSDN Blogs

Usage (Here is an example where I've required such a scenario)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe -m -ag 1.2 -hash SHA1 -file \\server\CruiseControl.NET\server\Rodemeyer.MsBuildToCCnet.dll FullTrust

No comments: