简体   繁体   English

加密提供者是 null

[英]Crypto provider is null

We're seeing this error when generating PDFs using Winnovative's HtmlToPdfConverter:我们在使用 Winnovative 的 HtmlToPdfConverter 生成 PDF 时看到此错误:

System.Exception
Message: The crypto provider is null
wnvinternal.ᤐ.ᢀ(String A_0):348
wnvinternal.ᤑ.ᜒ(String A_0):165
wnvinternal.ᤑ.ᜀ(String A_0):165
Winnovative.HtmlToPdfConverter.ᜀ(String A_0, String A_1, String A_2, String A_3, Boolean A_4):1489
Winnovative.HtmlToPdfConverter.ᜀ(Stream A_0, String A_1, String A_2, String A_3, String A_4, Boolean A_5)
Winnovative.HtmlToPdfConverter.ᜁ(String A_0, String A_1, String A_2, String A_3, Boolean A_4):62
Winnovative.HtmlToPdfConverter.ConvertHtml(String htmlString, String baseUrl, String internalLinksBaseUrl)
Winnovative.HtmlToPdfConverter.ConvertHtml(String htmlString, String baseUrl)

What can I do to fix the problem?我能做些什么来解决这个问题?

Background背景

We have two "production" URLs: one of them is https://ourdomain.com , the other is https://api.ourdomain.com . We have two "production" URLs: one of them is https://ourdomain.com , the other is https://api.ourdomain.com . These are IIS sites served by two separate VMs.这些是由两个单独的 VM 提供服务的 IIS 站点。 Identical code is deployed to each, and almost-identical configuration.相同的代码被部署到每个几乎相同的配置中。

There are some difference between the sites.站点之间存在一些差异。 API has an IP allowlist set on the firewall. API 在防火墙上设置了 IP 许可名单。 API has 16GB of memoray compared to 32GB on non-API. API 的内存为 16GB,而非 API 为 32GB。

The user browses to a URL which returns a PDF file.用户浏览到返回 PDF 文件的 URL。 On the non-API site, it works as intended: the PDF is available for download.在非 API 站点上,它按预期工作:PDF 可供下载。 On the API site, the PDF is not available for download - instead we see this error.在 API 站点上,PDF 无法下载 - 相反,我们看到了这个错误。

I've used the Nartac configuration tool to make sure the protocols and cipher suites are identical between the two servers.我使用了 Nartac 配置工具来确保两台服务器之间的协议和密码套件是相同的。

We discovered the problem out of pure luck.我们纯属运气发现了这个问题。 A separate part of our system was also throwing exceptions, but those exceptions were a bit more explicit, and mentioned the servier's FIPS setting.我们系统的一个单独部分也抛出了异常,但这些异常更加明确,并提到了服务器的 FIPS 设置。 After disabling FIPS on the server in question, and rebooting so that the new setting was in effect, the PDFs started working again.在相关服务器上禁用 FIPS并重新启动以使新设置生效后,PDF 再次开始工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM