C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object (1652 Views)
Reply
Occasional Visitor
navinvarma
Posts: 2
Registered: ‎03-13-2012
Message 1 of 6 (1,652 Views)

C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

Hello Experts,

I am writing a tool to fetch QC bugs using C# ( CLR 4.0, CS 2010, cpu=x86, windows 7). I am new to QC API's.

 

My C# code works fine for Connection object but while creating instance of Command object I get following error:

 

Retrieving the COM class factory for component with CLSID {56FD2617-AEC0-46C8-805A-E69481480B68}
failed due to the following error: 80040154
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

 

 

I checked the registry settings, but couldnt find any objet with the mentioned CLSID.

Can someone suggest if I missed any step during installation or need to change my approach ?

 

 

code sample:

using

TDAPIOLELib;

 

TDConnection qctd = newTDConnection();

qctd.InitConnectionEx(strServerURL);

qctd.ConnectProjectEx(strDomainName, strProjectName, userId, pswd);

 

 

TDAPIOLELib.

Command Com = new TDAPIOLELib.Command();

Com.CommandText =

"select BG_STATUS from bug where bg_bug_id = 12563";

....

...

...

 

Please use plain text.
Occasional Advisor
TelerikStudio
Posts: 7
Registered: ‎03-07-2012
Message 2 of 6 (1,642 Views)

Re: C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

Have u built ur solution for x86 platform only? try doing that

Please use plain text.
Frequent Advisor
Steven Hulse
Posts: 85
Registered: ‎09-29-2009
Message 3 of 6 (1,626 Views)

Re: C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

Hi Navi,

 

There was a similar thread/error along these lines. http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/Issue-in-NET-with-ALM-11/td-p/5578145

 

it was a little different scenario but it was suggested that for their issue to do the following.

 

regsvr32 "OTAClient.dll"

 

Now I'm not sure if that would fix the issue you are having but I did look up the HRESULT error in HR Plus and it reported back as a GPF (General Page Fault), basically the class wasn't registered. (REGDB_E_CLASSNOTREG)

 

Thats what lead me to the possible solution above. For your particular issue, it may be a different class than the OTAClient.dll.

 

Hope this helps or at least leads you in the right path to a resolution.

Steve

Please use plain text.
Occasional Visitor
navinvarma
Posts: 2
Registered: ‎03-13-2012
Message 4 of 6 (1,620 Views)

Re: C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

Telerik and Steve,

Thanks for quick response.

 

I found the solution.

Problem was the way I was trying to get reference to Command object.

 

wrong way:

Command Com = new  Command();

 

right way:

Command Com = qctd.Command;

 

Regards,

Navin

 

Please use plain text.
Advisor
msvinay31
Posts: 11
Registered: ‎02-08-2012
Message 5 of 6 (1,599 Views)

Re: C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

I am using Windows Server 2003 Server. Getting following error.

Class not registered (Exception from HRESULT:0x80040154 (REGDB_E_CLASSNOTREG)

 

Even i registered the class from C:\DLL\OTAClient.dll, Where This OTAClient is copied from other server where QC Browser is installed.

 

Windows: 2003 Server

Visual Studio: 2010

Build: x86


 

 

Regards,

Vinay

Please use plain text.
Occasional Visitor
KenKap
Posts: 1
Registered: ‎01-29-2014
Message 6 of 6 (486 Views)

Re: C# OTAClient.DLL unregistered error for TDAPIOLELib.Command object

Try Installing QC Connectivity, it worked for me.

https://almpc.sqa.its.state.nc.us/qcbin/TDConnectivity_index.html

 

 

I was hung up on this Class Not Registered error for a couple days, for the OTAClient.dll

 

After I installed QC Connectivity, it must have properly registered the dll, or missing references.

 

 

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation