How to activate Entity Framework Extensions license in global.asax file?

720 Views Asked by At

I bought license for Entity Framework Extensions. I added LicenseName and LicenseKey to app.config file and tried to activate license in global.asax. This is activation code from their documentation:

    Z.EntityFramework.Extensions.LicenseManager.AddLicense([licenseName], [licenseKey]);

However I am getting error about expiration which is not true in my case. Does anybody knows how to properly setup license in global.asax? Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

Hope you have updated inside the Application_Start in global.asax to activate your license.

Note: Add the license before the first call to the library. Otherwise, the library will be enabled using the evaluation period.