View previous topic :: View next topic |
Author |
Message |
Mack
Joined: 03 Mar 2013 Posts: 5 Location: USA
|
Posted: Mon Jul 29, 2019 12:51 pm Post subject: An unexpected error - Root element is missing |
|
|
When starting my application a window pop up with the message:
"An unexpected error (Root element is missing.) occurred while reading the license."
Continuing on the application informs the trial is expired with the option to install a license. Prior to this the installed Authenticated license had been working fine over several months. I have seen this message on 3 different computers out of about 75. Installing a new license resolves it. This is happening after having upgraded to License Manager 6.4.1.0. OS is Windows 10. Has anyone seen this? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Aug 06, 2019 2:10 am Post subject: |
|
|
Did you change your application code when you upgraded to Version 6.4?
Is your application code doing background reauthentication of the license?
This error is likely because somehow the license file has become corrupted - perhaps during reauthentication - or perhaps something else your software is doing. _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Mack
Joined: 03 Mar 2013 Posts: 5 Location: USA
|
Posted: Sun Aug 18, 2019 2:08 pm Post subject: |
|
|
I am using the authenticated license C# sample code given in the Infralution Help document which does use background reauthentication (_licenseProvider.StartBackgroundReauthentication(); and _licenseProvider.StopBackgroundReauthentication()).
The thing is it will run for months with no issue but seemingly randomly it will delete the contents of the license key file. I have many installations running with no problems. If reauthenticaion fails is it normal for the contents of the license file to be deleted where the license file remains but has 0 byte contents? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Aug 18, 2019 11:44 pm Post subject: |
|
|
Quote: | If reauthenticaion fails is it normal for the contents of the license file to be deleted where the license file remains but has 0 byte contents? |
No if reauthentication fails the user should get a message indicating that the license is no longer valid and the license file is removed altogether.
You can check in License Tracker to see whether the affected licenses have Revoked Authentications (make sure you import Authentication Data first).
It is possible that if your application was killed (or crashed) for some reason while reauthenticating the license that it could be part way through writing the license file. I haven't had this issue reported with any of our own products. Is there anything unusual about your application - is it a standard Windows application? _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Mack
Joined: 03 Mar 2013 Posts: 5 Location: USA
|
Posted: Mon Aug 19, 2019 1:31 pm Post subject: An unexpected error - Root element is missing |
|
|
It is a standard Windows Forms application built with Visual Studio 2017. What might be unusual is it is running continuously 24/7 for months or years. I haven't had any issue with Infralution licensing with the prior version which I had been using for several years - and very happy with it. It was only after the upgrade that this issue is seen. If there is a power cycle the computer will reboot and the application will restart - that can happen. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Aug 19, 2019 11:30 pm Post subject: |
|
|
The first thing to check is whether the PCs that have had the issue have Revoked Authentications recorded?
Is your code calling StartBackgroundReauthentication() with no parameters or have you changed the reauthentication interval from the default? _________________ Infralution Support |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|