Skip to Content
author's profile photo Former Member
Former Member

Connection string in execution time

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2004 at 10:50 AM


    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()

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.