Loading...

Deployment issues pertaining to the"SetLicenseNumber" method

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Deployment issues pertaining to the"SetLicenseNumber" method

Postby ThierryD » Mon Aug 24, 2009 4:21 pm

hello sir,

here is the problem we have:

we are integrating the DLLs and OCXs associated to your product from an inno setup file: here are the parameters used for GDpicturepro, in compliance with the instructions given to us by Loic a while back:

Source: "[location]\AxInterop.GdPicturePro5.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "[location]\Interop.GdPicturePro5.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "[location]\gdpicturepro5.ocx"; DestDir: "{sys}"; Flags: regserver replacesameversion uninsneveruninstall
Source: "[location]\gdimgplug.dll"; DestDir: "{sys}"; Flags: uninsneveruninstall replacesameversion
Source: "[location]\gdpdfplug.dll"; DestDir: "{sys}"; Flags: uninsneveruninstall replacesameversion
Source: "[location]\MSVBVM60.DLL"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall sharedfile regserver

I checked that both folders ({app} et {sys = system32}), have got all required dll and ocx.

yet, when our application is installed on a computer that has never "seen" gdpicturepro, here is the exception that is sent at the beginning of the launch and prevents the rest of the launch from taking place:

An unhandled exception occured in [myapp].
Exception Message: An error occurred creating the form. See Exception.InnerException for details. The error is: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown.
Inner Exception Message: Method 'SetLicenseNumber' cannot be invoked at this time.


since there are no other components using a method called "SetLicenseNumber", the problem has to come from gdpicturepro.

Could you please tell me what i should do to solve the problem quickly?

Thank you very much.

Kindest regards,
ThierryD
 
Posts: 3
Joined: Mon Aug 24, 2009 4:16 pm

Re: Deployment issues pertaining to the"SetLicenseNumber" method

Postby ThierryD » Tue Aug 25, 2009 2:52 pm

just wanted to quickly add, to save us time that the method "setlicensenumber" has only been added in the correct place i believe, that is the "Load" section of the two forms using imaging and viewer, before any other request. they have been used for both components. thank you for your help.
ThierryD
 
Posts: 3
Joined: Mon Aug 24, 2009 4:16 pm

Re: Deployment issues pertaining to the"SetLicenseNumber" method

Postby Loïc » Tue Aug 25, 2009 4:21 pm

Hi Thierry,


Your deployment script seems good. The only thing I can suggest is to check that both AxInterop.GdPicturePro5.dll & Interop.GdPicturePro5.dll are generated from the same version as gdpicturepro5.dll used on your development computer & your client machines.


Did you tried to run the vb.net "Image Processing" sample in this same configuration ? This can be a good test to check if you have all the needed dlls.

And check if you have the stdole.dll on your client machine.

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Deployment issues pertaining to the"SetLicenseNumber" method

Postby ThierryD » Tue Aug 25, 2009 10:13 pm

thank you very much for your reply loic.

seems i had miss something after all ;-)... had slightly re-organized the initiation process of my form, and people who ever have the same problem should pay extra-care about the launch sequence, be sure that SetLicenseNumber is REALLY the first method executed during the Me.load event. also, it appears, having corrected the bug in the new executable of my app, i had to uninstall it from the client computer and reinstall it from scratch for the changes to be taken into account... still not sure about this last phase. anyway, it works now!

Hope this might help other people!

thank you very much loic for your answer

Regards,

td
ThierryD
 
Posts: 3
Joined: Mon Aug 24, 2009 4:16 pm

Re: Deployment issues pertaining to the"SetLicenseNumber" method

Postby Loïc » Wed Aug 26, 2009 10:30 am

Perfect!

Thank you for the feedback Thierry.
However this is a very strange behavior. I suggest to make another deployment test on another computer to be sure to get this problem fixed.

Cheers,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron