Invalid registration key

10 posts / 0 new
Last post
ssparrow
ssparrow's picture
Offline
Joined: 2 Oct 2011
Posts:
Invalid registration key

Hi all,

I installed MoSync 2.7 on my laptop today successfully, however when I ran the IDE, it gave me a popup window titled "Invalid user key" and with the following body text: "Your registration key is invalid. Please re-register".

The IDE launched an internal browser which displayed the message: Invalid key. Can not continue.

I tried uninstalling, cleaning folders and the registry then re-installing with the same result. I tried an earlier release, 2.6, to no avail.

This is a bit weird, as the software runs fine on my desktop system.

Has anyone else experienced this problem ?

Thanks.,
Steve

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ovidiu
ovidiu's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

Hi,

Quite odd. Never happen to me. I'll see if I can find someone to help.

cheers

Ovidiu
ovidiu's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

Hi ssparrow,

This is what I have found: if you uninstall and remove the installed folder then reinstall you should get a new key. Therefore please try the following: uninstall MoSync and delete the MoSync folder, install and then using the explorer select mosync.exe found in the "eclipse" folder.
Let me know if this fails.

ssparrow
ssparrow's picture
Offline
Joined: 2 Oct 2011
Posts:

Hi Ovidiu,

Thanks for the response, but unfortunately, this did not fix the issue.
As you suggested, I uninstalled MoSync, then removed the folder (c:\mosync). I then re-installed mosync (2.7 Pyramid) and after installation completed, used windows explorer and ran mosync.exe file in the eclipse folder. The Welcome screen appeared followed closely by the error screen.

Other observations:
I disabled the internet connection and ran mosync. The register message did not come up (as expected); just a message about not having a connection.
I then enabled the internet connection and clicked on help->register, only to get the error again. There is a delay of around 2 seconds after clicking register, before the mosync browser window shows the message Invalid key. Can not continue.

I can get around this for now, by disabling the internet connection when starting MoSync, then re-enabling it once launched.

I might have to dig into the source to see what could be causing this error.. it's quite strange as I seem to be the only one experiencing it.

Regards
Steve

ssparrow
ssparrow's picture
Offline
Joined: 2 Oct 2011
Posts:

Hi all,

In case anyone else comes across this problem; I resolved it after fishing around in the source code.

The problem seems to have been caused by an invalid "user.key" field in the c:\mosync\etc\config.xml file. The normal key is quite long (128 characters) but for some reason, the one Mosync was initialising my config.xml with was much shorter key; even after deleting config.xml and letting be re-created.

After browsing the source, I found I could request a key myself from mosync (/registration/request/key) and then when I pasted this into the config.xml file and fired Mosync back up, the error message was gone and I got the registration page. After entering my existing registation worked and I am now a happy camper.

I'm content to live with this as it has only happened on one machine and does not warrant extensive research.

Regards,
Steve

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:

Cool, thanks for all of this research Steve.

Ovidiu
ovidiu's picture
Offline
Mobile Wizard
Joined: 27 Jan 2011
Posts:

Cheers for this good observation. I'll see if anything can be done to avoid this problem in the future.

Mattias Bybro
mattiasb's picture
Offline
Mobile Wizard
Joined: 20 Jan 2010
Posts:

Hi Steve and thanks for helping us out here,

I've investigated it further and noticed what could be the reason for the bug when reading from the stream that would exhibit exactly the behaviour described. But only rarely, of course.

/Mattias

PS. Slightly related: it is possible to clear the registration info in Preferences > MoSync Tool > Profile Updates. This will trigger a new registration key to be generated. DS.

ssparrow
ssparrow's picture
Offline
Joined: 2 Oct 2011
Posts:

Hi Mattias, Ovidiu and Sam,

Thanks for all your responses. I think MoSync is a great product and if I come across any other problems, I'll be sure to dig into the source code to try and track them down.

Apart from lacking a good UI design tool, like say Basic4Android which we were using prior to MoSync, it meets all our major requirements and we're looking forward to releasing some cools software over the coming months with this product.

Regards,
Steve

alima
alima's picture

This comment has been deleted.