Friday, February 3, 2012

Ideablade License Exceptions when running Applications using DevForce


When running code in Visual Studio which uses Ideablade Devforce, you might encounter the following exception.


An error occurred while processing your product license: This product is not registered or the key may no longer be valid. Please contact your IdeaBlade representative to obtain a new key or email sales@ideablade.com.
Check the messages in the debuglog preceding this error for more information, since this error can occur in some high-security configurations. If your product key is no longer valid or you cannot resolve the problem, please contact IdeaBlade.

The three most common causes of this error include:
  1. An Invalid License key. When this occurs, contact ideablade and make sure that the license key is valid for the version of DevForce you have installed.
  2. The probing assembly is invalid. Check the Ideblade.config file and ensure that the probing assembly points to the assembly that contains your entity model.

  3. A change in one of the files that is used by the Ideablade license logic. When this occurs, simply regenerate the model. That is, open the Ideablade Object Mapper and save.
    The Ideablade license information is found in EntityRelations.cs. If the Ideblade Devforce assemblies are recently upgraded, regenerating the model ensures that this file contains the valid license information.
    [assembly: IdeaBladeLicense("aseriesofcharacters")] 
These findings are found with help from Ideablade support.