简体   繁体   中英

Could not find ABCpdf license

I've been using ABCPdf for a while. 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...

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. 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.

Any ideas how to install the license when using Nuget installation?

The XSettings.InstallLicense call is correct. 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. lol.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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