Multiple License Keys

Multiple License Keys

Forum member · Mar 16, 2006
I am working in a clustered environment where each server has its own license key. So that we don't have to maintain multiple webconfig files for each server due to license keys, we would like utilize the storing of multiple keys within the config file. However, it is not clear on how to setup the code to read each license key and add using the one line of code. Do we need to loop through each key setting and add each one regardless of server? Thanks Frances

Re: Multiple License Keys

Support · Mar 16, 2006
Hello Frances, If you need to add multiple license keys to the same web.config file, you can add a number after the key name: <appSettings> <add key="ceTe.ServerLicenseKey" value="GEN30NES..." /> <add key="ceTe.ServerLicenseKey2" value="GEN30NES..." /> <add key="ceTe.ServerLicenseKey3" value="GEN30NES..." /> </appSettings> Thanks, ceTe Software Support Team

Re: Multiple License Keys

Forum member · Mar 16, 2006
I understand that part of it. But how does cete.DynamicPDF.Document.AddLicense("....") know to pick up all the keys in the config file? Do I need to capture each and loop through all adding each as I go?

Re: Multiple License Keys

Support · Mar 16, 2006
Hello, Once you have placed all the license keys in your web.config file, you do not need to add the license key again using the static AddLicense() method. Thanks, ceTe Software Support Team