Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: BPA 10 Client QueryInterface Error
Topic Summary: Interface error / Agent will not stay connected
Created On: 01/25/2014 05:44 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 01/25/2014 05:44 PM
User is offline View Users Profile Print this message

Author Icon
EricJones
Expert (100-199)

Posts: 105
Joined: 11/11/2007

Upon installing BPA agent 10.0.0.33 and it logging into the server, about half of the installation result in an error which prevents the agent from staying connected for more than a few seconds at a time. The error information is below. *Note* - The interface ID referenced in the error is the same for every computer tested that experiences the error (physical or virtual)

***********************************************************
Description:
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'AutoMate.Communications.Client.IBPAExecutionClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{03D9F177-CFAB-446A-9ECE-19C20E5B0A8C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at AutoMate.Communications.Client.IBPAExecutionClient.AuthenticateResponseAsync(AuthenticateResponseMessage Response)
at AutoMate.Communications.Client.BPAExecutionServerProxy.AuthenticateResponseAsync(AuthenticateResponseMessage Response)
Event Xml:
">http://schemas.microsoft.com/w...004/08/events/event">


0
2
0
0x80000000000000

21919
Application
DellTab



System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'AutoMate.Communications.Client.IBPAExecutionClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{03D9F177-CFAB-446A-9ECE-19C20E5B0A8C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at AutoMate.Communications.Client.IBPAExecutionClient.AuthenticateResponseAsync(AuthenticateResponseMessage Response)
at AutoMate.Communications.Client.BPAExecutionServerProxy.AuthenticateResponseAsync(AuthenticateResponseMessage Response)



***********************************************************

Has anyone else seen this? I did an experiment and copied the "Classes..." registry key from a working computer to a non-working one. I received a different error indicating that a "typelib" was not registered. I then tried re-registering every Dll that comes with BPA w/o success...

Ideas?

Thanks,

-Eric

-------------------------


Thanks,

-Eric
 01/26/2014 07:36 AM
User is offline View Users Profile Print this message

Author Icon
EricJones
Expert (100-199)

Posts: 105
Joined: 11/11/2007

Where there's a will (or MSDN)...there's a way.

I don't know why this works, but I've found that I can take a working machine and export the registry key referenced in the error [from the working machine]. I then import that key into a non-working machine. Subsequently, I register the type library in the error message [on the non-working machine]. Finally, I restart the BPA Agent. Then all is good and the agent functions perfectly well. I've validated this on 2 machines so far, 1 virtual and 1 physical - also Win7 and Win8.1 respectively.

Hopefully whatever causes this not to properly install/register will be fixed in the next BPA beta update...

Thanks,

-Eric

-------------------------


Thanks,

-Eric
 01/26/2014 08:02 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Eric,
which registry key do you mean ?
I don't see any in your initial message.


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
 01/26/2014 08:33 AM
User is offline View Users Profile Print this message

Author Icon
EricJones
Expert (100-199)

Posts: 105
Joined: 11/11/2007

*******************************************************************
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Interface\{03D9F177-CFAB-446A-9ECE-19C20E5B0A8C}]
@="IBPAExecutionClient"

[HKEY_CLASSES_ROOT\Interface\{03D9F177-CFAB-446A-9ECE-19C20E5B0A8C}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\Interface\{03D9F177-CFAB-446A-9ECE-19C20E5B0A8C}\TypeLib]
@="{8F9FE79A-AAA2-497E-AA32-D8B826AD493E}"
"Version"="1.0"

*******************************************************************

Then I run:

regtlibv12.exe "C:\Program Files (x86)\AutoMate BPA Server 10\AutoMate.Communications.Client.tlb"

The executable to run is usually in the .NET framework folder of the respective machine. If it is not then you can copy one from any machine to a broken one to run the command. It doesn't need any supporting files.

Important note - In my limited testing, the registry files *must* be imported prior to running the type library registration. Otherwise, I had to uninstall/reinstall and then do the registry keys...then the TLB registration.

Thanks,

-Eric

-------------------------


Thanks,

-Eric
 01/26/2014 08:37 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Thank you for the clarification, Eric.
It is really strange that the install does not produce the same outcome in all machines.

-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1734 guests browsing this forum, which makes a total of 1734 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog