|
Rank: Newbie Groups: Member
Joined: 2/5/2013 Posts: 3
|
Hi, We have a problem after upgrading the hosting environment - we are using IIS 7 installed at a Windows Server 2008 datacentre edition in the Amazon Cloud. Below is a printout of the stacktrace: EO.Pdf.HtmlToPdfException: Convertion failed. Parameter is not valid. ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Image.FromHbitmap(IntPtr hbitmap, IntPtr hpalette) at System.Drawing.Image.FromHbitmap(IntPtr hbitmap) at EO.Pdf.Internal.lu.a(Int32 A_0, HtmlToPdfResult A_1) at EO.Pdf.Internal.lu.d() --- End of inner exception stack trace --- Page Source: http://temp.festivall.dk/print/print.aspx?url=http%3a%2f%2ftemp.festivall.dk%2fapplications%2fartists%2fprint.aspx%3fmxdappid%3d483%26mxdpickup%3debb17d2f5039&admin=1As far as I can Google, the error occurs in FromHbitmap if the bit depth on the server is different from the display, but I might be wrong. What can I do to resolve this issue? Best Regards, Morten
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Can you check whether you have the latest version? We are not able to find any call to FromHBitmap in our current code base.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/5/2013 Posts: 3
|
Hi eo_support,
The version we are using is: EO.pdf = 4.0.50.2 EO.Web = 10.0.47.2
It might be an internal call in the image or bitmap class if you are using one of those.
Best, Morten
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Do you use GeneratePageImages feature in your code?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/5/2013 Posts: 3
|
Hi,
Thanx for your quick support.
Yes, I actually have that property set to true.
After testing, removing that property also removed the error.
/Morten
|
|