开发者

CryptoLicensing error

I'm currently evaluating several licensing apps f开发者_如何学Cor .NET and the one I found easier to work and feature-wise is CryptoLicensing.

I downloaded CryptoLicensing v2011, configured the License Activation WebService, ran the install.aspx steps and I got an sql server database with 5 tables.

Then I went to the app and tried to generate a license and I got an error message saying "Cannot insert value NULL into column 'ID'". I checked with SQL Profiler and in fact this column (which is the primary key column) doesn't appear in the insert statement. I noticed that the License table had 5 columns: ID, LicenseCode, MachineCode, LicSetting_ID, LicSetting_LicenseCode. So I changed the table definition: set the ID as nullable and removed it from the PK and set the LicSetting_ID as PK.

Then I was able to generate licenses and validate. Now I'd like to know if everyone is having this issue or if I did something wrong..

I was thinking in buying CryptoLicensing but I don't want to have to "hack" the database to make it work.

Best regards, Manuel Felício.


I contacted their support and they replied me quickly and effectively (less than 10 minutes) enough to make me state this here.

The problem was that I didn't specify a table prefix when I created the licensing tables from within the management application. The license service creates a table named License and the application creates a table named prefix+'License', which caused the errors.

Anyway, it wasn't clear to me that it was mandaroty to specify a table prefix. Apart from that, it is working now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜