License validation error

I have a ASPNet application using Hydra 4 that every once in a while (I have not been able to determine the circumstances) produces the error below. Hydra is fully licensed and this error does not occur on other sites running the same application.

System.Web.HttpUnhandledException (0x80004005): Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> System.ArgumentException: Item has already been added. Key in dictionary: ‘Finser.RegELib, Version=3.0.27.0, Culture=neutral, PublicKeyToken=null’ Key being added: 'Finser.RegELib, Version=3.0.27.0, Culture=neutral, PublicKeyToken=null’
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at RemObjects.Hydra.Internal.ROLicenseManager.GetSavedLicense(Type aType, Assembly anAssembly) in c:\CI\b\hydra\932\Hydra for .NET\Source\RemObjects.Hydra\Licensing.pas:line 168
at RemObjects.Hydra.Internal.ROLicenseProvider.GetLicense(LicenseContext context, Type aType, Object anInstance, Boolean aAllowExceptions) in c:\CI\b\hydra\932\Hydra for .NET\Source\RemObjects.Hydra\Licensing.pas:line 58
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at RemObjects.Hydra.NonVisualPlugin…ctor() in c:\CI\b\hydra\932\Hydra for .NET\Source\RemObjects.Hydra\Plugins\NonVisualPlugin.pas:line 99
at Finser.RegELib.TPlgRegELib…ctor() in c:\DevVS_CSharp\RegELib\RegELib\TPlgRegELib.cs:line 107
at RegE_BranchV2.TAppl.get_PlgRegELib() in C:\DevVS\RegE_BranchV2\RegE_BranchV2\Objects\Obj_Appl.vb:line 224
at RegE_BranchV2.TAppl.get_RegESysInfo() in C:\DevVS\RegE_BranchV2\RegE_BranchV2\Objects\Obj_Appl.vb:line 119
at RegE_BranchV2.TAppl.Reset() in C:\DevVS\RegE_BranchV2\RegE_BranchV2\Objects\Obj_Appl.vb:line 59
at RegE_BranchV2._Default1.Page_Load(Object sender, EventArgs e) in C:\DevVS\RegE_BranchV2\RegE_BranchV2\Default.aspx.vb:line 15

Thanks, logged as bugs://78525

Hello

This looks like a race condition on first plugin activation. As a workaround try to instatiate this plugin once at app startup

This issue will be resolved in the next Hydra Beta build.

Sorry for the inconvenience.

Thanks, I will give it a try.

Will this fix be available for Hydra 4?

TIA

Bernhard

Hello

Most probably no. Current version is 5 so all fixes go to it.

bugs://78525 got closed with status fixed.