ASP.NET Web Forms许可证验证问题
IronPDF许可证验证在ASP.NET Web Forms应用程序中失败。 对许可服务器的HTTP请求因不支持的TLS版本而被拒绝。
ASP.NET Web Forms 应用程序在 httpRuntime 未配置 targetFramework 属性时默认使用 TLS 1.0。 IronPDF 许可服务器需要 TLS 1.2,.NET Framework 4.6.1 及更高版本支持,但只有当 httpRuntime targetFramework 设置为该版本或更高版本时才支持。 <compilation targetFramework> 元素本身是不够的。 httpRuntime targetFramework 是控制外部 HTTP 请求期间 TLS 协议选择的内容。
解决方案
在 Web.config 中添加或更新 httpRuntime 元素。
如果缺少 httpRuntime,在 <system.web> 中添加:
<system.web>
<httpRuntime targetFramework="4.7.2" />
</system.web>
<system.web>
<httpRuntime targetFramework="4.7.2" />
</system.web>
如果 httpRuntime 已存在但缺少 targetFramework,请添加该属性:
<httpRuntime maxRequestLength="4096" executionTimeout="110" targetFramework="4.7.2" />
<httpRuntime maxRequestLength="4096" executionTimeout="110" targetFramework="4.7.2" />
using targetFramework="4.7.2" 或更高的值。 启用 TLS 1.2 的最低值是 "4.6.1"。

