ARTICLE CONTENTS Developer licenses Trial licenses How trial licenses work Obtaining a license key Setting the license key from the auto-generated LicenseFile.xml Setting the license key manually Using a single LicenseFile.xml for several Telerik controls Changing the location of the LicenseFile.xml Trial error messages Troubleshooting NOTE: All examples are given with Radeditor MCMS edition, however the instructions are the same for all controls Developer Licenses
Developer licenses come with modified DLLs, which work without license keys. If you have a Developer license for one or more of the Telerik components, you only need to ensure that you are using the developer build when downloading the control(s). These builds have the Dev abbreviation in their file names.
If your application is displaying a license key error, this means that you are using a trial version of the product. Log in to your www.mcmscontrols.com account and download the developer build. To update your project, please take a look at the Upgrading the Trial License to a Production License section in the HELP manual(s) for step-by-step instructions.
The free trial licenses of all Telerik products are fully functional and will work for an unlimited time without license keys when used on http://localhost and http://127.0.0.1.
How trial licenses work The license information for all Telerik components is stored in a LicenseFile.xml file. The structure of the file is as follows:
<root> <license control="editor" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY1"/> </root>
All trial versions of the Telerik controls come with an empty LicenseFile.xml file, located the RadControls folder of the control:
Additionally, all trial versions have a LicenseFile property, which is preset to point to the empty LicenseFile.xml file, located in the RadControls folder of the control,i.e.
<Telerik:RadEditorplaceholdercontrol LicenseFile="~/RadControls/LicenseFile.xml" ...> </Telerik:RadEditorplaceholdercontrol>
<Telerik:RadEditorplaceholdercontrol
LicenseFile="~/RadControls/LicenseFile.xml"
...>
</Telerik:RadEditorplaceholdercontrol>
To run the trial version of RadEditor outside localhost, and to remove the copyright messages, you need to obtain and set a trial license key. The license key is valid for 30 days from the date of creation and can be extended for another 30 days from your www.mcmscontrols.com account, if needed. To obtain a license key:
Once you do that, the copyright message should disappear. If you still see the copyright message, review the Troubleshooting section below.
You can use a single LicenseFile.xml for every instance of the editor which you use within this aspx/ascx file. If you are using another aspx/ascx file which has reference to the editor, open the file and input the LicenseFile property in it as well.
You can use a single LicenseFile.xml for all Telerik controls as well - just set the other control(s) to use the already created LicenseFile.xml by setting the LicenseFile property. Below is the LicenseFile.xml convention:
<root> <license control="editor" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY1"/> <license control="spell" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY2"/> <license control="tabstrip" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY3"/> <license control="menu" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY4"/> <license control="panelbar" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY5"/> <license control="treeview" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY6"/> </root>
<root> <license control="editor" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY1"/>
<license control="spell" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY2"/>
<license control="tabstrip" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY3"/>
<license control="menu" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY4"/>
<license control="panelbar" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY5"/>
<license control="treeview" company="YOUR COMPANY" licenseKey="YOUR LICENSE KEY6"/> </root>
You can change the license file’s location and name by setting a valid path and file name in the LicenseFile property, for example:
<Telerik:RadEditorplaceholdercontrol LicenseFile="~/MyNewFolder/LicenseFile.xml" ...> </Telerik:RadEditorplaceholdercontrol>
LicenseFile="~/MyNewFolder/LicenseFile.xml"
In this example, all licensing information should be located in a file, named MyLicenseKey.xml, which is not located in the RadControls folder.
If no licenses keys are set, the trial licenses will occasionally display the following message on your webform: Radeditor 6.x.x Copyright © Telerik 2006. To remove this message, please, obtain a 30-day trial key.
Also, if no licenses keys are set and you try to access RadEditor by IP (e.g. http://123.123.123.123), domain name (http://www.MySite.com), or machine name (http://MyPc/MyWebApplication), you will receive the following license key warning: Radeditor 6.x.x. You have not provided valid license key or company name, or you are trying to access the control by domain name, IP, or server name. Please, use http://localhost/ instead or contact Telerik's support team through the on-line ticketing system. The same error shows up if you try to acces the control by an IP or domain name/machine name other than what you have already set for the trial key. If your trial key has expired, you will see the following error message: RadEditor 6.x.x Copyright © Telerik 2006. Your trial key has expired. To extend your key, please click here. Troubleshooting
If you see the copyright message after the trial key is set:
Resources Buy Try