2010-05-11 17 views
1

J'ai reçu ce message d'erreurSAP Business One: Erreur de connexion Lorsque je tente de se connecter à l'API de l'interface utilisateur

"Connection - Could not find SBO that match the connection string [66000-85]" 

lorsque je tente de se connecter SAP Business One API d'interface utilisateur.

je me connecter comme ce qui suit:

private void SetApplication() 
{ 


    SAPbouiCOM.SboGuiApi SboGuiApi = null; 

    string sConnectionString = null; 

    SboGuiApi = new SAPbouiCOM.SboGuiApi(); 

    // connect to a running SBO Application 

    sConnectionString = Environment.GetCommandLineArgs().GetValue(1).ToString() ; 
    SboGuiApi.Connect(sConnectionString);  



    SBO_Application = SboGuiApi.GetApplication(-1); 
} 

Répondre

0

Je l'ai eu ce problème, ma chaîne de connestring est mal config. Quand je mets ça en place, ça marche maintenant. Merci a tous.