- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
EvoPDF HTML 到 PDF 转换库 (http://www.evopdf.com/) 声称它支持 Windows Azure 云平台,但我无法让它工作。我得到了异常(exception):
[Exception: Could not get conversion result header. Data receive error. Could not receive data. Error code: 109]
EvoPdf.HtmlToPdf.ImgConverter.GetLayoutFromUrl(String url, ps& htmlParseInfo) +622
EvoPdf.HtmlToPdf.PdfConverter.ConvertAndGetPdfDocument(String url, String htmlString, String baseUrl, String internalLinksDocUrl, Boolean fromUrl) +9748
EvoPdf.HtmlToPdf.PdfConverter.ConvertAndSaveToStream(Stream outStream, String url, String htmlString, String baseUrl, String internalLinksDocUrl, Boolean fromUrl) +61
EvoPdf.HtmlToPdf.PdfConverter.SavePdfFromUrlToStream(String url, Stream outPdfStream) +20
这看起来像是在库通过 Web 请求获取 HTML 内容时失败了。 Azure 中是否有任何内容可以阻止传出 Web 请求?
该库部署为两个 DLL,一个 native DLL 和一个托管程序集 - 是否需要任何特殊的 Azure 配置来允许加载 native DLL? (该库确实支持 xcopy 部署,我让它在其他托管环境中以这种方式工作)。
最佳答案
据我所知,您需要使用 Azure Web 角色,而不是 Azure 网站。这些网站不支持完全信任运行。
EvoPdf 有一个适用于 Azure 的示例项目,您可以下载该项目,该项目演示了如何使用可以运行 EvoPdf dll 的站点设置 Web 角色。
关于azure - EvoPDF 库在 Windows Azure 托管站点上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12460500/
我正在尝试使用 evoPDF dll 将 URL 转换为 pdf。当我在本地机器上执行它时运行良好,但每次托管在 IIS 服务器上时都会失败。错误如下。 加载 HTML 错误或导航超时。 任何关于此失
我知道可以使用 C# API 在页眉/页脚中呈现“Y 页 X”,如下所示: //write the page number TextElement footerText = new TextEleme
EvoPDF HTML 到 PDF 转换库 (http://www.evopdf.com/) 声称它支持 Windows Azure 云平台,但我无法让它工作。我得到了异常(exception): [
我在使用 EVOPdf 从 WebAPI Controller 向 AngularJS 应用程序呈现 PDF 时遇到问题。 到目前为止,这是我的代码: Angular 调用: var url = 'a
将 EvoPDF 用于 .Net Web 应用程序可以在本地运行,但是一旦部署到 Microsoft Azure 网站,它就会抛出一般异常:“无法呈现 html”。 堆栈跟踪: [Exception:
将 EvoPDF 用于 .Net Web 应用程序可以在本地运行,但是一旦部署到 Microsoft Azure 网站,它就会抛出一般异常:“无法呈现 html”。 堆栈跟踪: [Exception:
我正在尝试在 Azure Web 应用程序上使用 evoPDF HTML 到 PDF 转换器,但我似乎遇到了仅在通过 HTTPS 访问站点时才会出现的问题。 我的 azure 部署安装了我的 SSL
我正在使用 EvoPDf(版本 6.10)的示例代码在 MVC 中将 Html 转换为 PDF。代码如下所示。 byte[] outPdfBuffer = htmlToPdfConverter.Con
我是一名优秀的程序员,十分优秀!