TuesPechkin icon indicating copy to clipboard operation
TuesPechkin copied to clipboard

Type 'Win32EmbeddedDeployment' is not defined

Open joshie23 opened this issue 5 years ago • 2 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?

joshie23 avatar Apr 17 '19 19:04 joshie23

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

andabil avatar Apr 17 '19 21:04 andabil

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<PdfToolset>( new Win32EmbeddedDeployment( new TempFolderDeployment())));

UmangAccolite avatar Dec 02 '21 06:12 UmangAccolite