Try our conversational search powered by Generative AI!

LicenseException

Vote:
 

Hello all,

I'm trying to start development on a pre-existing site. I copied the live site to my development machine and replaced the license.config file with my developer license file.

I had to change various connection strings etc. to get it working but once i did i receive the following error:

LicenseException: A error occured while loading the license file [Could not load file or assembly 'ElektroPost.Licensing, Version=6.0.318.89, Culture=neutral, PublicKeyToken=6c80515f031c7fe6' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

The version of the electropost.licensing DLL is 1.0.0.10.

I believe the web.config file refers to this version (1.0.0.10) correctly (see below)

<dependentAssembly>
    <assemblyIdentity name="ElektroPost.Licensing" publicKeyToken="6c80515f031c7fe6" culture="neutral"/>
    <bindingRedirect oldVersion="1.0.0.0-1.65535.65535.65535" newVersion="1.0.0.10"/>
</dependentAssembly>

The license.config file refers to version 6.0.318.89 (see below)

<Restrictions>
    <Restriction>
        <VersionRestriction From="4.20" To="4.9999" Type="ElektroPost.Licensing.RestrictionTypes.VersionRestriction, ElektroPost.Licensing, Version=6.0.318.89, Culture=neutral, PublicKeyToken=6c80515f031c7fe6" />
    </Restriction>
    <Restriction>
        <MACRestriction Address="xxxxxxxxxxxx" Type="ElektroPost.Licensing.RestrictionTypes.MACRestriction, ElektroPost.Licensing, Version=6.0.318.89, Culture=neutral, PublicKeyToken=6c80515f031c7fe6" />
    </Restriction>
    <Restriction>
        <ValidToRestriction Date="04/04/2010 00:00:00" Type="ElektroPost.Licensing.RestrictionTypes.ValidToRestriction, ElektroPost.Licensing, Version=6.0.318.89, Culture=neutral, PublicKeyToken=6c80515f031c7fe6" />
    </Restriction>
</Restrictions>

Is this something i can fix, or do i need a different license.config file?

Any help is much appreciated.

George.

#36820
Feb 11, 2010 14:58
Vote:
 

You have to register the electropost dll information into your GAC(c:\windows\assembly) . Drag the dll and drop it into the GAC(c:\windows\assembly) and do a iisreset  and then refresh your page.

Please let me know still you are having issues

Many thanks,
Lakshmi narayanan

 

 

#36971
Edited, Feb 16, 2010 6:49
Vote:
 

You have to registered the ElektroPost.Licensing dll into your GAC(c:\windows\assembly). Drag ElektroPost.Licensing dll in to your GAC(c:\windows\assembly) and do a iisreset and refresh the page.

Please let me know if you still facing the issue.

Thanks and regards
Lakshmi narayanan

 

 

#36972
Feb 16, 2010 6:57
Vote:
 

Hi George,

This problem appeared after we deployed latest build on license portal. This issue has already been fixed so creating a new license file for episerver cms-4 will solve your issue.

 

#36975
Feb 16, 2010 8:10
Vote:
 

Hi, I have a simular problem. I'm using demo licenses when developing our website, but today there seems to be changes in how the demo license is created. Now a version attribute is added to the license file, and our 4.62 site does'nt recognize version 6.2.165.1 of Electropost.Licensing dll and throws me an LicenseException. Is this change permanent, or just a problem like Shahid mentioned her?

Kai

 

#49230
Mar 09, 2011 15:56
Vote:
 

Hi Kai,

Unfortuntely we got the same problem after deploying latest build on license portal. We are currently working on and will update you once we solve it.

 

#49234
Mar 09, 2011 16:16
Vote:
 

Hi Shahid, thanks for your quick reply. I'll just wait for your update, thanks for your time.

Kai

#49239
Mar 09, 2011 17:37
Vote:
 

Hi,

We have updated the license portal just now. You need to get a new license to get it work. Let me know if you get any problem (I HOPE NOT :)).

#49257
Mar 10, 2011 10:33
Vote:
 

Hi, thanks for your help and time in solving my issue (and yours;-)), now its possible to create demo license without the version attribute in the Electropost.Licensing tags. Thanks again and have a nice day

Kai

 

 

#49258
Mar 10, 2011 11:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.