Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf HtmlToPdf.ConvertHtml error starting 20.1.30 Options
Sadjad Bahmanpour
Posted: Tuesday, May 5, 2020 8:54:37 PM
Rank: Newbie
Groups: Member

Joined: 5/5/2020
Posts: 2
Hi,

Starting from 20.1.30 a simple call to HtmlToPdf.ConvertHtml is failing with below error. I've tested 20.1.31 and same issue and 20.0.81 and below is fine.

Error:

System.TypeInitializationException: The type initializer for 'EO.Internal.prkq' threw an exception. ---> System.MissingMethodException: Method not found: 'System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)'.
Stack Trace:
hrlp.hqdq(Stream nhb)
prkq.cctor()
--- End of inner exception stack trace ---
prkq.hqdp(Int32 ngv)
prdc.pthi()
prdc.ehsi()
HtmlToPdfSession.ctor(HtmlToPdfOptions yi, HtmlToPdfSession yj)
HtmlToPdfSession.Create(HtmlToPdfOptions options)
ogji.vgkg()
xjww.uhhg[a](prdl`1 bsh)
HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options)
HtmlToPdf.ConvertHtml(String html, Stream stream)

Code:

Code: C#
var html = "<p>Hello</p>";
using (MemoryStream stream = new MemoryStream())
{
    HtmlToPdf.ConvertHtml(html, stream);// , options);
    byte[] array = stream.ToArray();
    return array;
}
eo_support
Posted: Wednesday, May 6, 2020 8:43:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thanks for posting in the forum. We are aware of this problem. It occurs only with .NET Core. This issue will be resolved in our next build.
eo_support
Posted: Friday, May 15, 2020 12:49:08 PM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have posted a new build (2020.1.45) that should resolve this issue. You can download it from our download page. Please take a look and let us know how it goes.

Thanks!
Sadjad Bahmanpour
Posted: Saturday, May 16, 2020 10:36:57 PM
Rank: Newbie
Groups: Member

Joined: 5/5/2020
Posts: 2
Thanks, the latest version fixed the issue
eo_support
Posted: Monday, May 18, 2020 9:34:17 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Great. Thanks for confirming!


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.