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