[Tutorial] Redistributing GdPicture.NET COM edition
Posted: Fri May 04, 2012 11:12 am
Topic moved, see: https://www.gdpicture.com/guides/gdpicture/web ... tiveX.html
Community Forums
https://www.gdpicture.com:443/forum/
Hi,
Network shares get “LocalIntranet” permission by default so yes you need to use caspol.exe first to grant full trust on network shares.
GdPicture.NET V9 strong name is just GdPicture.NET.9 but I'm not sure it's relevant here.
To trust everything on the share \\server\share, the command is : CasPol.exe -m -pp off -ag 1.2 -url file://///server/share/* FullTrust
And it reads the following:
-m = modify the machine level of the policy
-pp off = turns the confirmation prompt off
-ag 1.2 = add a code group under group 1.2. In the default policy, group 1.2 is the “LocalIntranet” group, so the new code group that we're creating will only be checked if the file comes from the intranet.
-url file://///server/share/* = The membership condition for the new code group is should be a UrlMembershipCondition, if you use a mapped network drive, let's say X:, then simply replace file://///server/share/* with "file:///X:/*"
FullTrust = The permission set to grant assemblies that match the code group.
If you are running a 64-bit system, make sure to run caspol.exe on both the 32-bit version and the 64-bit version of the framework.
I hope this helps.