Rotativa pdf生成不会在生产服务器中显示图像和样式表格式

时间:2022-09-04 21:10:42

We are using rotativa to generate pdf which is working fine in our local system and in demo server but when we generate pdf in production server then it do not display images and style sheet format on production server. Here we are able to generate pdf on production server but only text information is displaying in generated pdf images and style sheet format in missing in the production server pdf. I have checked all of the path for images and style sheet are correct and these are available in the server. all of the necessary permission in given like IUser, Network services, IIS_user with full permission to rotativa folder. can any one have idea regarding what can be the issue and there resolution. Thanks to all of you in advance.

我们正在使用rotativa生成pdf,这在我们的本地系统和演示服务器中运行良好,但是当我们在生产服务器中生成pdf时,它不会在生产服务器上显示图像和样式表格式。在这里,我们能够在生产服务器上生成pdf,但只有文本信息以生成的pdf图像和样式表格式显示在生产服务器pdf中。我检查了图像的所有路径和样式表是正确的,这些在服务器中可用。所有必要的权限,如IUser,网络服务,具有rotativa文件夹完全权限的IIS_user。任何人都可以了解可能存在的问题和解决方案。感谢大家的提前。

1 个解决方案

#1


0  

I had the same issue I access my prod server by DNS "https://myserver.com" but inside the server this dns in not solved, so rotativa cant find the css and images

我有同样的问题,我通过DNS“https://myserver.com”访问我的prod服务器,但在服务器内这个dns没有解决,所以rotativa无法找到CSS和图像

I edited my C:\Windows\System32\drivers\etc\hosts file and add this line

我编辑了我的C:\ Windows \ System32 \ drivers \ etc \ hosts文件并添加了这一行

127.0.0.1   myserver.com

i hope it helps you

我希望它可以帮助你

#1


0  

I had the same issue I access my prod server by DNS "https://myserver.com" but inside the server this dns in not solved, so rotativa cant find the css and images

我有同样的问题,我通过DNS“https://myserver.com”访问我的prod服务器,但在服务器内这个dns没有解决,所以rotativa无法找到CSS和图像

I edited my C:\Windows\System32\drivers\etc\hosts file and add this line

我编辑了我的C:\ Windows \ System32 \ drivers \ etc \ hosts文件并添加了这一行

127.0.0.1   myserver.com

i hope it helps you

我希望它可以帮助你