I am getting exception of "Bad Data" from license file.

This exception indicates that license file have been created using cryptographic settings different from ones are used in your application. Pay attention, that every version of every product uses own cryptographic settings because of security reasons. Cryptographic settings are stored in your application at the ILicenseKeyProvider implementation (LicenseParameters and LicenseKey properties). If your ILicenseKeyProvider code have been created for previous version of your product (for example, 1.0.0.0) then you will not be able license file created for another version (for example, 2.0.0.0) and vice versa. The same problem can occurs if you've changed cryptographic settings (click "Create keys") and didn't regenerate IlIcenseKeyProvider code for your application after that.

We suggest you regenerate IlIcenseKeyProvider code using right application version node, and replace it in your application.