[Tutorial] Redistributing GdPicture.NET COM edition

Discussions about GdPicture.NET usage in non managed applications built in vb6, Delphi, vfp, MFC c++ etc...
Post Reply
User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

[Tutorial] Redistributing GdPicture.NET COM edition

Post by Loïc » Fri May 04, 2012 11:12 am


Gianni81
Posts: 1
Joined: Thu Jul 18, 2013 11:58 am

Re: [Tutorial] Redistributing GdPicture.NET COM edition

Post by Gianni81 » Thu Jul 18, 2013 12:31 pm

I need to register the file to a network location

Regasm gives this error:

RegAsm: error RA0000: Request for the permission of type 'System.Security.Per
missions.SecurityPermission, mscorlib, Version = 2.0.0.0, Culture = neutral, Publick
eyToken = b77a5c561934e089 'is not satisfied.

I signed on as an administrator, but nothing has changed.

I think before regasm.exe, I do caspol.exe

But of course I do not have the strongname of your assembly.

How can I do?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [Tutorial] Redistributing GdPicture.NET COM edition

Post by Loïc » Thu Jul 18, 2013 7:12 pm

Hello,

For convenience here the answer that Cedric gave you on the helpdesk about this issue:

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest