gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
401 stars 128 forks source link

64-bit support? #19

Open timcroydon opened 11 years ago

timcroydon commented 11 years ago

Hi there,

Tried deploying Pechkin as part of my solution to an IIS server and got the exception:

BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

This is the problem described here: http://stackoverflow.com/questions/2023766/an-attempt-was-made-to-load-a-program-with-an-incorrect-format-even-when-the-p

Workaround is to enable 32-bit app support for the IIS app pool.

Do you know if there's a 64-bit version of the wkhtmltopdf libraries or if there's any way of deploying to 64-bit? My sysadmin is not keen on enabling 32-bit support if we can help it.

Thanks.

V3nn3tj3 commented 11 years ago

Second this. Could it be possible to make the project 64bit compatible?

ureyes84 commented 11 years ago

It's an awesome project. 64bit compatible would make it perfect :)

Thanks!

gmanny commented 11 years ago

I'll look into it, https://github.com/pruiz/WkHtmlToXSharp already supports 64 bit, so you can use it in 64-bit environment. As soon as I'll embed libraries into assembly, I'll look into 64-bit support.

Which looks like that it won't be very soon.

kendrome commented 11 years ago

I'd also like the 64-bit support, thanks for the awesome library!

ysrb commented 10 years ago

Upvote

muralinit commented 10 years ago

Hi GManny,

First of all thank you very much for this wonderful library. When we can except the 64-bit support for this library. Because we are using NServiceBus in 64 Bit so I may not use the workaround what you have specified.

Thanks in advance.

Regards, N.Murali Krishna.

germanger commented 10 years ago

64 bit support is crucial for using Pechkin in Windows Azure. Think about it: Pechkin is mostly used in ASP.NET applications, and: where is the "best place" to host ASP.NET applications? in Azure. Pechkin should be compatible with Azure.

jackjbradford commented 10 years ago

+1 would be really nice to have

MacMcDell commented 10 years ago

bump.

tuespetre commented 10 years ago

Unfortunately, like the page for Wktohtmlsharp states, there is no x64 wkhtmltopdf library available, so it simply cannot be run in x64 mode.

Instead of doing some sketchy child process spawning, would anyone be interested in a project that exposes Wkhtmltopdf as a WCF service over named pipes, so it could be run in its own 32-bit app pool and utilized by fully 64-bit applications?

justintoth commented 9 years ago

Very disappointing, I would've loved to use this.

tuespetre commented 9 years ago

Wkhtmltopdf now does offer a 64-bit lib, which has since been included in TuesPechkin.

justintoth commented 9 years ago

Thanks, I'll give it a try!

ascendedcrow commented 9 years ago

Azure Service does not support 32bit, I really need Pechkin to be 64bit please.

swordzhang2004 commented 9 years ago

does Pechkin can be used in IIS x64 now?