Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unhandled Exception when creating new sale

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
HYC



Joined: 05 Aug 2008
Posts: 4

PostPosted: Tue Aug 05, 2008 3:09 pm    Post subject: Unhandled Exception when creating new sale Reply with quote

Hi,

I validate the new version of ILS. We would like to use SQL Server 2005 for storing licensing information. After I modified the connection string to use the SQL Server, I get an Unhandled Exception when creating a new sale:

"An unhandled exception occured in Infralution License Tracker. Please contact Infralution and provide the information below:

Exception Type: COMException
Message: Incorrect syntax near '*',

Stack Trace:
at ADODB.ConnectionClass.Execute(String CommandText, Object& RecordsAffected, Int32 Options)
at Infralution.LicenseTracker.LicenseTracker.LicenseDatabase.Execute(String command)
at Infralution.LicenseTracker.LicenseKeyScale.Delete(Sale sale)
at Infralution.LicenseTracker.SaleDialog.ClearLicenses()
at Infralution.LicenseTracker.SaleDialog.GenerateLicenses()
at Infralution.LicenseTracker.SaleDialog._generateLicenseButton_Click()
..."

Do you know this problem ??

Can you help me ?

Thanks HYC
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Aug 06, 2008 3:04 am    Post subject: Reply with quote

Thanks for reporting this issue. We have now released Version 4.0.2 which fixes this issue with the SQL Server database integration.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
HYC



Joined: 05 Aug 2008
Posts: 4

PostPosted: Wed Aug 06, 2008 7:59 am    Post subject: Reply with quote

Thanks for the fast help ! Now it works.

I get a new error:
I tried to extend the key and product info length. Therefore I resized the length of the columns [LicenseKey].[Key] and [LicenseKey].[ProductInfo] to 4000 characters and changed LicenseTracker config file to
<add key="MaxLicenseKeyLength" value="4000" />

After these changes I tried to create a new key with complex ProductInfo using a CustomGenerator. I get the following unhandled exception:

Exception Type: COMException
Message: Operation failed. The index entry of length 1078 bytes for the index 'Key' exceeds the maximum length of 900 bytes.

"Stack Trace:
at ADODB.RecordsetClass.Update(Object Fields, Object Values)
at Infralution.VirtualData.VirtualRecord.Update(Recordset recordset, Boolean refreshRecordset)
at Infralution.VirtualData.VirtualRecord.Update(Boolean refreshRecordset)
at Infralution.LicenseTracker.LicenseKey.GenerateKeys(Distributor distributor, Product product, Customer customer, Sale sale, Int32 numberOfKeys)
at Infralution.LicenseTracker.SaleDialog.GenerateLicenses()
at Infralution.LicenseTracker.SaleDialog._generateLicenseButton_Click()
....
"

Did I forget to modify any additional configuration ?

Can you help me ?

Thanks HYC
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Aug 06, 2008 11:24 am    Post subject: Reply with quote

You can't just change the MaxLicenseKeyLength parameter in the config file to 4000 - you'd have to change the size of the actual database field (using SQL Server Management Studio). The default size of the Key field is 900 - because this is the maximum size that SQL Server supports with an index. If you want a field larger then this you can change it in Management Studio and answer yes when asked if you want to remove the index. This may however adversely affect performance when sorting and locating license keys in a large database.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group