Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

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

Former Member
replied

In this case, you may need to restart the License Server, then it works fine.

Regards

-Yatsea

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question