Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Error Connecting DIAPI

$
0
0

Hi Raul,

 

First, try to remove the SM_OBS_DLL folder in temp folder.

If that does not solve your problem,

 

Can you try first connecting with

            oCompañiaSBO = new SAPbobsCOM.Company();

            string cookie = oCompañiaSBO.GetContextCookie();

            string connInfo = oAplicacionSBO.Company.GetConnectionContext(cookie);

 

 

            retCode = oCompañiaSBO.SetSboLoginContext(connInfo);

            if (retCode != 0)

            {

              // ERROR!

              return oCompañiaSBO.GetLastErrorDescription();

            }

 

Usually this method will give you a more specific error message.

Once you have corrected the problem, you can then switch to your original code.

 

Regards

Edy


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>