0

i want to generate pdf from Razor view ,i used Rotativa nuget package or HiqPDF package ,it working fine on local machine but when i hosted on server it will give following error,help me to resolve an errorNuGet包本地不在服务器上的“/”应用程序运行

服务器错误。

错误0x4EC。检查HiQPdf.dep资源文件可以在HiQPdf.dll程序集附近找到,并且用户已经读取并执行此文件的权限。调用SetDepFilePath()方法,如果你放置HiQPdf.dep在不同的位置

描述:在当前web请求的执行过程中发生未处理的异常。请查看堆栈跟踪以获取有关该错误的更多信息以及源代码的位置。

Exception Details:

System.Exception: Error 0x4EC. Check the HiQPdf.dep resource file can be found near the HiQPdf.dll assembly and the user has read and execute permissions for this file. Call SetDepFilePath() method if you placed the HiQPdf.dep in a different location

源错误:

在当前web请求的执行过程中生成未处理的异常。关于异常的来源和位置的信息可以使用下面的异常堆栈跟踪来标识。

堆栈跟踪:

回答

0

,因为该程序是由服务器的组策略阻塞,就会发生错误。如果您有共享服务器,则可能需要尝试不受共享主机提供商限制影响的专用服务器。

0

Rotativa无法正常工作,因为您的应用程序所在的服务器不允许运行外部进程。 您可以切换到启用它的服务器/托管/云解决方案,也可以尝试在线服务(SaaS)http://RotativaHQ.com

相关问题