Showing results for 
Search instead for 
Did you mean: 

Connection string in execution time

Former Member
0 Kudos

We have developed our first Add-On for SBO. Our surprise is that the connexion string doesn?t works when Add-On is registered in SBO. The connection string works in Visual Basic environment but it doesn?t works in execution time.

We are using SBO and SDK 6.50. The connection  string we are using is: 0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056

Please, can anybody help me?

Thank you for your help and your time.

Albert Masnou

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos


have you made sure that in your addon uses the command line argument in the release version of the addon? The command line argument is provided by Business One directly.

HTH Lutz Morrien

Here is a code sample for connecting in Visual Basic .NET (SAP sample):


      '// Use an SboGuiApi object to establish connection

      '// with the SAP Business One application and return an

      '// initialized appliction object


      Dim SboGuiApi As SAPbouiCOM.SboGuiApi

      Dim sConnectionString As String

      SboGuiApi = New SAPbouiCOM.SboGuiApi

      '// by following the steps specified above, the following

      '// statment should be suficient for either development or run mode

      sConnectionString = Environment.GetCommandLineArgs.GetValue(1)

      '// connect to a running SBO Application


      '// get an initialized application object

      MySBO_Application = SboGuiApi.GetApplication()

Former Member
0 Kudos

Thank you Lutz,

I'm working with VB6. If I change:

sConnectionString = Command


sConnectionString = Split(Command)(0)

It works allways, in VB environtment and in execution mode.

Thank you for your help.


Former Member
0 Kudos

Hi all,

now I seem to have a problem with the connection string.

We are using the above .Net code to connect to SAP Business One.

If I am using the connection string isued by SAP for development only, the Addon connects to SAP without a problem.

However, if I connect to SBO using the connection string provided by SAP, the application returns:

"System.Runtime.InteropServices.COMException (0xFFFFE3E0):

You don't have license for UI development

at SAPbouiCOM.SboGuiAPIClass.Connect(String ConnectionStr)"

I am working with SBO version 6.20.36 SP 02 Patchlevel 20

... and I have tried to log on to two databases which both have all permissions (including SDK)

I understand that the connection string given by SAP is for development only, therefore I need SBo to return a correct connection string.

Any ideas?

TIA Lutz Morrien