Welcome Guest Search | Active Topics | Sign In | Register

Convertion failed. Parameter is not valid Options
Morten
Posted: Tuesday, February 5, 2013 4:27:05 PM
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=1

As 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
eo_support
Posted: Tuesday, February 5, 2013 4:48:52 PM
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!
Morten
Posted: Tuesday, February 5, 2013 5:01:33 PM
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

eo_support
Posted: Tuesday, February 5, 2013 5:06:27 PM
Rank: Administration
Groups: Administration

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

Do you use GeneratePageImages feature in your code?

Thanks!
Morten
Posted: Tuesday, February 5, 2013 8:29:36 PM
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


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.