SAP Business One:连接错误当我尝试连接到UI API时

时间:2010-05-11 08:44:35

标签: user-interface connection sap sapb1

我收到此错误消息

 "Connection - Could not find SBO that match the connection string  [66000-85]"

当我尝试连接SAP Business One UI API时。

我按以下方式连接:

private void SetApplication()
{


    SAPbouiCOM.SboGuiApi SboGuiApi = null;  

    string sConnectionString = null;

    SboGuiApi = new SAPbouiCOM.SboGuiApi(); 

    // connect to a running SBO Application

    sConnectionString = Environment.GetCommandLineArgs().GetValue(1).ToString() ;
    SboGuiApi.Connect(sConnectionString);     



    SBO_Application = SboGuiApi.GetApplication(-1); 
}

1 个答案:

答案 0 :(得分:0)

我遇到了这个问题,我的连字符串字符串配置错误。我设置了一个它现在有效的方法。谢谢大家。