关于SBO Addon Connection Timed out 连接增强器超时[解决方案]

 private void SetApplication()
        {
            //*******************************************************************
            //使用SBOGUIAPI對象建立連接,并初始化應用程序對象
            //*******************************************************************

            SAPbouiCOM.SboGuiApi SboGuiApi = null;
            string sConnectionString = null;

            SboGuiApi = new SAPbouiCOM.SboGuiApi();

            by following the steps specified above, the following
            statment should be suficient for either development or run mode
          
            sConnectionString = System.Convert.ToString(Environment.GetCommandLineArgs().GetValue(1)); //该方式不会出现。正常
            //sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"; //该方式会出现启动ADDON连接超时,但ADDON启动是成功的。

            //連接運行中的SBO Application(Connects to a running instance of a SAP Business One application.)
            SboGuiApi.Connect(sConnectionString);

            get an initialized application object
            //得到初始化后的應用對象
            //Returns an Application object initialized by the previous call to the SboGuiApi.Connect method. Public Properties
            SBO_Application = SboGuiApi.GetApplication(-1);
        }

 

While creating final ard file dont use any connetion string .

1) REmove connection string.
2) Rebuild application.
3) Create ARD file.
详情查看SAP NOTE 912572
https://websmp206.sap-ag.de/notes

转载于:https://www.cnblogs.com/el-net/articles/2153308.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值