Welcome Guest Search | Active Topics | Sign In | Register

HtmlToPdf Functionality Not working suddenly for the last few days Options
qatester
Posted: Thursday, June 30, 2022 4:25:48 PM
Rank: Newbie
Groups: Member

Joined: 1/27/2022
Posts: 5
Hello,

We have a obtained a new EO.Total License January 2022 but we were working with Essential objects from long time. We have been using the HTMLToPdf functionality in our web application for the last few years.

We have noticed that from the past 3 days we are having issues with this functionality and the program is failing. Doing a IISRESET on the web server is working fine for 30mins to 1hr then again it just stops working. There is no change in our license or code in the last few days.

Below is the error from one of our functionalities. Please let us know what we can do for this or do we have to implement something else in our application to handle this error.

Error-Conversion failed. License 'XXXXXXXXXXX' is not valid for this build or this product. Each version uses a different license key. Please make sure your license key version matches your DLL version. If you are testing a new version with an old license key, please remove your old license key to avoid this exception. InnerException: System.Exception: License 'XXXXXXXXXX' is not valid for this build or this product. Each version uses a different license key. Please make sure your license key version matches your DLL version. If you are testing a new version with an old license key, please remove your old license key to avoid this exception. at EO.Internal.owlc.lsxb.bsns() at EO.Internal.owlc.omux(lsxb bsy, owla bsz, lsxd bta, Boolean btb) at EO.Internal.owlc.cuyc(HtmlToPdfOptions btd, Single bte, Single btf, owfo btg, List`1 bth, owfq bti) at EO.Internal.owfp.cuyc(owfq vx, Single& vy) at EO.Internal.owfp.cuxy(owfq vn) at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at EO.Base.BaseException..ctor(String lsy, Exception lsz) at EO.Pdf.HtmlToPdfException..ctor(Exception aae) at EO.Pdf.HtmlToPdfException.ppan(Exception aaf) at EO.Internal.owfp.cuxy(owfq vn) at EO.Internal.owfp.cuxy() at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc) at EO.Pdf.HtmlToPdf.papq.fgdp() at EO.Internal.owkz.bryg[a](dstu`1 brb) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream) at pta277_4.SendEmail() at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)

Thank you.
eo_support
Posted: Thursday, June 30, 2022 7:17:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

This is a version mismatch between your license key and your DLL. Each major version uses a different license key. So for example, version 2021 and version 2022 would use different keys. As such if you use version 2021 key with version 2022 DLL, then you would get this error. To resolve this error, you would need to first find out what version of the DLL you are using, and then go to your license key page to download license key for that version.

Thanks!
qatester
Posted: Friday, July 1, 2022 2:08:17 PM
Rank: Newbie
Groups: Member

Joined: 1/27/2022
Posts: 5
Hello,

As per your suggestion, I have downloaded the latest product from the website and also used the EO.pdf license key 2022 from the Orders.

So now my dll's are up-to-date and even the license key but we still have the same issue. Same issue as yesterday and still the problem is not resolved. I have few questions on this scenario.

1. Whys is the license key updated whenever I visit the page. Do we keep updating the license key each time we do it?
2. We have 4 products in our license so how do I differentiate which license key should I use in my web application? If I am using multiple components how to handle license keys?
3. Even using latest dll's and latest key my issue still persists, if the issue is with license key why is it working for only sometime. How come it starts working again if I do IISRESET?

Thank you.
eo_support
Posted: Saturday, July 2, 2022 10:00:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
qatester wrote:
1. Whys is the license key updated whenever I visit the page. Do we keep updating the license key each time we do it?

This is normal. The keys are time stamped. So each time you visit you will see a different key. But all keys are valid.

qatester wrote:
2. We have 4 products in our license so how do I differentiate which license key should I use in my web application? If I am using multiple components how to handle license keys?

You just apply multiple keys. For example, if you use both EO.Web and EO.Pdf, then you apply key for EO.Web and apply key for EO.Pdf.

qatester wrote:
3. Even using latest dll's and latest key my issue still persists, if the issue is with license key why is it working for only sometime. How come it starts working again if I do IISRESET?

The key either work or do not work. They do not work sometimes only. When it does work, your DLLs/keys match When it doesn't work, your DLLs/key don't match. So your focus should be try to find out why when you do a reset it would fix the mismatch issue. The most likely cause is somewhere in your code you are applying an incorrect key and that code is only called under certain conditions. So when you do a fresh reset, that wrong code is not called. But somehow later that code is called. Once it's called the wrong license key is applied then you will continue getting this error until you reset again.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.