cancel
Showing results for 
Search instead for 
Did you mean: 

License Info in Client PC

silambarasan_rajendran
Active Contributor
0 Kudos

Hi,

We try to get license hardware key using this code. Its working fine in Server system.

Dim HKEY As String = ""

Dim LicInf As SBOLICENSELib.LicenseInfo = New SBOLICENSELib.LicenseInfo()

LicInf.GetHardwareKey(HKEY)

If HKEY.Trim.Equals("W1938429387") = False Then ' Customer Server Hardware Key

If oCompany.Connected Then oCompany.Disconnect()

System.Windows.Forms.Application.Exit()

MsgBox("Installing Add-On failed due to License Mismatch")

End

End If


But, while connecting client pc its appearing following error msg.

any idea?

Note : We are using SAP AddOn to get Library file "SBOLicense COM Bridge 2.0 Type Library".

Thanks & Regards,

Silambu

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Have you checked this link ?

There is an SAP Business One License API which allows you to read the information from the License Services.

Hope that can help you.

Thanks & Regards

Ankit Chauhan

SAP Business One Global Support

silambarasan_rajendran
Active Contributor
0 Kudos

Hi Ankit,

Thanks for reply.

Same I referred SDK.


Dim HKEY As String = ""

Dim LicInf As SBOLICENSELib.ILicenseInfo = New SBOLICENSELib.LicenseInfo

LicInf.GetHardwareKey(HKEY)

is it need to link server library or ..?

Thanks & Regards


Silambu

Answers (0)