Syntax of Register(?)

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
mchansy
Posts: 3
Joined: 05 Feb 2013, 20:41

Syntax of Register(?)

Post by mchansy » 06 Feb 2013, 11:00

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

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Syntax of Register(?)

Post by support » 06 Feb 2013, 12:37

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Syntax of Register(?)

Post by support » 06 Feb 2013, 13:58

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

mchansy
Posts: 3
Joined: 05 Feb 2013, 20:41

Re: Syntax of Register(?)

Post by mchansy » 06 Feb 2013, 14:21

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.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Syntax of Register(?)

Post by support » 07 Feb 2013, 11:54

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply