用于将HTML转换为pdf的Winnovative软件在azure中不起作用 [英] Winnovative software for converting HTML to pdf is not working in azure

查看:84
本文介绍了用于将HTML转换为pdf的Winnovative软件在azure中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在我的mvc5应用程序中包含了winnovative软件dll并完成了所有必要的代码以使其工作,并且当我运行我的应用程序或在iis中托管我的应用程序时它工作正常服务器。

但是当我使用azure将我的应用程序作为应用程序服务发布时,会抛出异常,因为

无法呈现HTML字符串。无法呈现HTML string.Error HRESULT E_FAIL已从调用COM组件返回..



描述:未处理的异常在执行当前Web请求期间发生。请查看堆栈跟踪以获取有关错误及其在代码中的起源的更多信息。



异常详细信息: Winnovative。 WnvHtmlConvert.HtmlConvertException:无法呈现HTML字符串。无法呈现HTML string.Error HRESULT E_FAIL已从调用COM组件返回..



请帮我解决它。

提前致谢!!



我尝试过:



我甚至尝试用wnvHtmltoPdfClient.dll替换wnvHtmltoPdf.dll,因为当我搜索dll for azure时,我得到了12.16版本的这个包但没有运气。

解决方案

这个论坛上的某个人可能使用过Winnovative软件,但如果你去他们的支持网站并将你的问题邮寄给他们,我认为你有更好的机会。

联系Winnovative软件解决方案 [ ^ ]



首先查看他们的代码示例,看看是否有遗漏的东西

创新的HTML到PDF转换器演示 [ ^ ]

Hi,
I have included the winnovative software dll in my mvc5 application and did all neccessary code to make it work and it works fine when i run my application or when i host my application in iis server.
But when I publish my application as a app service using azure it throws an exception as
"Could not render the HTML string. Could not render HTML string.Error HRESULT E_FAIL has been returned from a call to a COM component.."

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Winnovative.WnvHtmlConvert.HtmlConvertException: Could not render the HTML string. Could not render HTML string.Error HRESULT E_FAIL has been returned from a call to a COM component..

Please help me in resolving it.
Thanks in advance!!

What I have tried:

I even tried by replacing the wnvHtmltoPdf.dll with wnvHtmltoPdfClient.dll because when i searched the dll for azure i got this package of version 12.16 but no luck.

解决方案

It is possible that someone on this forum has used Winnovative software, but I would think you have a better chance if you go to their support site and mail them your question.
Contact Winnovative Software Solutions[^]

And first check their code samples see if there is something you missed
Winnovative HTML to PDF Converter Demo[^]


这篇关于用于将HTML转换为pdf的Winnovative软件在azure中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆