Skip to Content
0
Former Member
Sep 26, 2008 at 09:06 AM

In Single sign-on - Error code:1000000004 Error msg:Unknown session

45 Views

Hi,

While connecting to the company using single sign on i am getting the following error.

Error code : 1000000004

Error msg : Unknown session

any suggestion??

i am using following code.

OCT_SboGuiApi = New SAPbouiCOM.SboGuiApi
OCT_Company = New SAPbobsCOM.Company
strConnection = Environment.GetCommandLineArgs.GetValue(1)
OCT_SboGuiApi.Connect(strConnection)
GOD_Application = OCT_SboGuiApi.GetApplication()
strCookie = OCT_Company.GetContextCookie
strConnection = GOD_Application.Company.GetConnectionContext(strCookie)
lngGetCompanyString = OCT_Company.SetSboLoginContext(strConnection)
If OCT_Company.Connected = True Then
      OCT_Company.Disconnect()
End If
If Not lngGetCompanyString = 0 Then
      Exit Sub
End If
lngGetCompanyString = OCT_Company.Connect

Regards,

Mahendra

Edited by: Mahendrakumar on Sep 26, 2008 11:06 AM