using c#.net Connect Business Objects CMS using COM API

we are need to connect cms using below code in C# using COM api and its link is
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/205ace60-6c64-2b10-f593-84945e80a70f?overridelayout=true&32804960208940

we are getting the error in LoginAS method, if i try in Logon method it showing error
which application should be used(Console, windows, Crystalreports)
we are don’t know which assembly reference to be added
please help us fix the below error

using System;
using System.Collections;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Diagnostics;
using Excel = Microsoft.Office.Interop.Excel;
using Designer;
namespace ConsoleApplication2
{
class clsBOUnvManager
{
public static Designer.Application dsApp;
//public static Designer.Object dsobj;
//public static Designer.Universes dsUnvs;
//public static Designer.Universe dsUnv;
//public static Designer.Classes dsclss;
//public static Designer.Class dscls ;
//public static Designer.Tables dsTables;
//public static Hashtable colCls;
//public static Hashtable colTbls;
public static bool DesignerLogin(string strUserName, string strPassword, string strCMSName,string strAuthentication)
{

        try
        {
            //clsBOUnvManager.LoginAs(strUserName, strPassword, strCMSName, strAuthentication);
            clsBOUnvManager.dsApp.Visible = false;
            clsBOUnvManager.dsApp.Interactive = false;
            clsBOUnvManager.dsApp = new Designer.Application();
            clsBOUnvManager.LoginAs(strUserName , strPassword, strCMSName, strAuthentication);
           
            return true;
        }
        catch
        {
            //throw new System.Exception("Null Reference");
            return false;
        }
    }
   
    static void Main(string[] args)
    {

       
    }
}

}

:hb: :hb: :nonod: :nonod:


Padmalochini (BOB member since 2013-11-11)

[Moderator Note: Moved from General Discussion to SDK (VBA/ASP/JSP)]

And welcome to B:bob:B!


Marek Chladny :slovakia: (BOB member since 2003-11-27)

now my script showing an error as

“Retrieving the COM class factory for component with CLSID {0A5A217D-CC20-42EF-BF9E-9222080DBC13} failed due to
the following error: 80080005 Server execution failed (
Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))”

for that its need an assembly reference REGSVR.DLL, it not available in my system(System type: 32 bit operating system), so i have downloaded and pasted in my folder(c:\windows\System32) again it showing an error as

“A reference to ‘C:\windows\System32\regsvr.dll’ could not be added. Please make sure that the file is accessible, and it is a valid assemble or COM component.”

:nonod: :nonod: :nonod: :hb: :hb: :hb:


Padmalochini (BOB member since 2013-11-11)

now i registered the regsvr32.dll into our registry, but still we are getting the same error,
even though i have checked the compatibility where business objects 4.0 can work with visual basic 2010,
also i have checked with visual basic 2012 still it showing the same error

:hb: :hb: :hb: :hb: :hb:

is anybody there to resolve the issue plz


Padmalochini (BOB member since 2013-11-11)

now the universe getting opening, i have executed the script in the server it has been executed :twisted:


Padmalochini (BOB member since 2013-11-11)

Hello, I faced the same issue, how you solved it?

Thank.s


pio (BOB member since 2014-06-29)

Currently I’m facing the same issue with my application in PROD server though it’s working in Local Development machine. May i know how you solved this issue? Will appreciate it.

:hb: :hb: :hb:

Thanks in advance
Siba


siba.santosh (BOB member since 2015-12-02)