tuespetre / TuesPechkin

A .NET wrapper for the wkhtmltopdf library with an object-oriented API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type 'Win32EmbeddedDeployment' is not defined

joshie23 opened this issue · comments

We currently have an asmx web service that we use to make calls to our data server. I can get our development server to produce a pdf from html. However, I receive the titled error when calling the following line on our production server:

New RemotingToolset(Of PdfToolset)(New Win32EmbeddedDeployment(New TempFolderDeployment()))

On the development server, I do not compile the web service. I copied the whole solution over to the production server and can see the TuesPechkin dlls there. There is not Visual Studio on the production server. Do I need to compile the web service to be able to use the dlls or is there something else going on?

Try Win64EmbeddedDeployment or use AnyCPU with have both the Win32 and Win64 dlls.

With TuesPechkin.Wkhtmltox.AnyCPU Nuget package, I am getting an error at line Win32EmbeddedDeployment that is is not defined.
private static IConverter converter =
new ThreadSafeConverter(
new RemotingToolset(
new Win32EmbeddedDeployment(
new TempFolderDeployment())));