Pechkin with Windows Azure

2019-04-15 02:09发布

问题:

I'm getting this error whenever I try to debug the Azure project from Visual Studio. I checked on my original site project file the Platform Target and project's and every dependence as well are using "Any CPU". Not really sure what to do from here.

Could not load file or assembly 'Pechkin' or one of its dependencies.

回答1:

Are you running 32 bit allowed? Lots of docs out there talk about this being a limitation. mark as the answer please if that is the problem. There are solutions as well. apparently a guy did a fork called tuesPechkin with 64 bit versions.



回答2:

It's not possible to get wkhtmltopdf working on Azure. See this thread and this Gitgub issue.

I am assuming you mean running wkhtmltopdf on Windows Azure Websites.

wkhtmltopdf uses Window's GDI APIs which currently don't work on Azure Websites.

A solution could be to create a Windows service (or for example a web api endpoint), which runs the Tuespechkin converter. Then create a VM in Azure and install the Windows service/end point there.