Page 1 of 1

Syntax of Register(?)

Posted: 06 Feb 2013, 11:00
by mchansy
Hello,
I try to Register my application. With the Function Register(this) it works fine but I woud like to prefer to work with the function Register(val, regData, addToReg) but I don't know the values for the parameters.

I try the following (values are dummys):
ArrayList _licInfo = new ArrayList();
_licInfo.Add("25749258742985798243598237598237598423759874359874359923487234532542435"); //key
_licInfo.Add("Great Company Inc."); //User
_licInfo.Add("superman@metropolis.com"); //EMail
Protection.Register("25749258742985798243598237598237598423759874359874359923487234532542435", _licInfo , false);

I receive always a Error-Dialog: "Error in the registration key!"

What is wrong?

Is it possible to check the Lizenz without a erro-dialog (I prefer a exception)?

Thank you for your help.

CADImport.Net 8 Pro

Re: Syntax of Register(?)

Posted: 06 Feb 2013, 12:37
by support
Hello.
The function Register(string, ArrayList, bool) uses the license data to realize the registration. "Error in the registration key!" message is the result of incorrect values of arguments. There is no other way to check registration data - you need to use correct values.
Please send your order number or other registration information to support@cadsofttools.com. We will check your license data.

Alexander.

Re: Syntax of Register(?)

Posted: 06 Feb 2013, 13:58
by support
Hello.
Unfortunately I haven't noticed this earlier - the key must be not added to ArrayList instance. Please remove the following string from your code:

Code: Select all

_licInfo.Add("25749258742985798243598237598237598423759874359874359923487234532542435"); //key
Then registration will be successfull.

Alexander.

Re: Syntax of Register(?)

Posted: 06 Feb 2013, 14:21
by mchansy
Thank you. Now it works. :D

:idea: I wish me for a next version of the CADImport.net that we can check the registration without a error dialog. I will use the program on a server as a service and there is no user in front to see the message box.

Re: Syntax of Register(?)

Posted: 07 Feb 2013, 11:54
by support
Hello.
CAD Import .NET provides WinForm controls only. WinForm controls can't be used on server. The library can be used on server without placing its control. Please check ASP.NET demo project.
CAD Import .NET 9 includes the modification that prevents any message/dialog boxes on server. A server license required to use the library on server.

Alexander.