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 22.214.171.124.
I believe the web.config file refers to this version (126.96.36.199) correctly (see below)
<dependentAssembly> <assemblyIdentity name="ElektroPost.Licensing" publicKeyToken="6c80515f031c7fe6" culture="neutral"/> <bindingRedirect oldVersion="188.8.131.52-1.65535.65535.65535" newVersion="184.108.40.206"/></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.
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
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 regardsLakshmi narayanan
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.
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 220.127.116.11 of Electropost.Licensing dll and throws me an LicenseException. Is this change permanent, or just a problem like Shahid mentioned her?
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.
Hi Shahid, thanks for your quick reply. I'll just wait for your update, thanks for your time.
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 :)).
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