简体   繁体   English

找不到 ABCpdf 许可证

[英]Could not find ABCpdf license

I've been using ABCPdf for a while.我使用 ABCPdf 已有一段时间了。 I originally installed it via the installer and plugged the license in during the installation.我最初是通过安装程序安装的,并在安装过程中插入了许可证。 But now I'm adding the dll via Nuget so that I can build my solution in the cloud using MSBuild. And now I get the following love letter...但现在我通过 Nuget 添加 dll,这样我就可以使用 MSBuild 在云中构建我的解决方案。现在我收到以下情书......

Could not find ABCpdf license. Attempt to insert license failed. Please see Manual Installation section of documentation.

Here it says do this... 这里说这样做...

XSettings.InstallLicense("cd9b5c07db69df2bf57c0a04d9bca58b10c44889c9fb197984e592f49addfce5ec5fe85d7b9205bc")

I added this line in on application start (although my usage of ABCPdf is in a different project) and I get the same error.我在应用程序启动时添加了这一行(尽管我对 ABCPdf 的使用是在不同的项目中),但我得到了同样的错误。 Also, my license key doesn't look like this neat, single line of numbers and letters.此外,我的许可证密钥看起来不像这种整齐的单行数字和字母。 It was supplied across multiple lines and looks base64 encoded.它跨多行提供,看起来编码为 base64。

Any ideas how to install the license when using Nuget installation?使用 Nuget 安装时如何安装许可证有什么想法吗?

The XSettings.InstallLicense call is correct. XSettings.InstallLicense调用是正确的。 If you combine all the lines of your license into one line and take everything between the square brackets, it should work.如果您将许可证的所有行合并为一行并将所有内容都放在方括号中,它应该可以工作。

I used an assembly redirect in web.config to point to the older version of the dll that was installed in the GAC.我在 web.config 中使用程序集重定向指向安装在 GAC 中的旧版本 dll。 lol.哈哈。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM