Error HRESULT E_Fail

Apr 18, 2011 at 9:10 PM

Hi: I'm trying to install NodeXL on machine a WindowsXP with Excel 2007. I've downloaded and installed the NodeXL package without any errors, however when I attempt to open up the template, I get this error:

Error HRESULT E_FAIL has been returned from a call to a COM component

And there is no special toolbar for NodeXL (like I see in the screenshots).

Has anyone else experienced this?

Thanks in advance for any hints.

Apr 19, 2011 at 12:52 AM

Is that the entire error message? There might be a Details button you can press to get additional information. Please post all the text here.

Thanks,

Tony

Apr 19, 2011 at 11:42 PM

The details box is filled with gibberish (a whole bunch of squares). I could not copy/paste it here.

I was able to successfully install it on another computer, so it must be something screwy with my computer settings. If you have any hints, I'd appreciate it. I'd love to have it on my primary computer.

Thanks!

Apr 21, 2011 at 9:01 PM

This is a tough one.  It might be the same problem reported at http://nodexl.codeplex.com/discussions/57580, but with a gibberish error message I can't be sure.  And in any case, we never found the cause of that problem, either.  So for the moment, I don't have an answer for you.

-- Tony

May 4, 2011 at 6:56 PM

I just tried re-installing Office, but the error persists. But this time I was able to get information in the Details box. Here it is:

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IActionsPaneSite.SetClient(IntPtr control)
   at Microsoft.VisualStudio.Tools.Office.Internal.ActionsPaneSiteContractAdapter.SetClient(IntPtr control)
   at Microsoft.VisualStudio.Tools.Office.Internal.IActionsPaneSiteProxy.Microsoft.VisualStudio.Tools.Applications.Runtime.IActionsPaneSite.SetClient(Object control)
   at Microsoft.Office.Tools.ActionsPaneInternal.HookupSmartPane()
   at Microsoft.Office.Tools.DockableControlCollection.Add(Control value)
   at Microsoft.NodeXL.ExcelTemplate.ThisWorkbook.set_GraphVisibility(Boolean value)
   at Microsoft.NodeXL.ExcelTemplate.ThisWorkbook.ThisWorkbook_Startup(Object sender, EventArgs e)
   at Microsoft.Office.Tools.Excel.Workbook.OnStartup()
   at Microsoft.NodeXL.ExcelTemplate.ThisWorkbook.FinishInitialization()
   at Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase.Microsoft.VisualStudio.Tools.Applications.Runtime.IEntryPoint.FinishInitialization()
   at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.ExecutePhase(ExecutionPhases executionPhases)
   at Microsoft.VisualStudio.Tools.Applications.AddInAdapter.CompleteInitialization()
   at Microsoft.VisualStudio.Tools.Office.Internal.OfficeAddInAdapterBase.ExecuteEntryPointsHelper()


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Runtime.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Runtime.v10.0.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.AddIn
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.AddIn.Contract
    Assembly Version: 2.0.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn.Contract/2.0.0.0__b03f5f7f11d50a3a/System.AddIn.Contract.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0.dll
----------------------------------------
System.Deployment
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Deployment/2.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Security
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3613 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Contract.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Contract.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Contract.v9.0.dll
----------------------------------------
Microsoft.Office.Tools.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.v9.0.dll
----------------------------------------
Microsoft.NodeXL.ExcelTemplate
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.ExcelTemplate.DLL
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.AddInAdapter.v9.0.dll
----------------------------------------
Microsoft.Office.Tools.Excel.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Excel.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Excel.v9.0.dll
----------------------------------------
Microsoft.Office.Interop.Excel
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.6425.1000
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.Office.Interop.Excel/12.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll
----------------------------------------
Microsoft.Office.Tools.Common.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.v9.0.dll
----------------------------------------
office
    Assembly Version: 14.0.0.0
    Win32 Version: 14.0.4760.1000
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/office/14.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.AddInAdapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.AddInAdapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Adapter.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Contract.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Contract.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.ServerDocument.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.30729.4130
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.AddInProxy.v9.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Excel.HostAdapter.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.HostAdapter.v10.0.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Office.Contract.v10.0
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.21022.1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Office.Contract.v10.0/10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Office.Contract.v10.0.dll
----------------------------------------
Microsoft.NodeXL.Core
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Core.DLL
----------------------------------------
Microsoft.NodeXL.ApplicationUtil
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.ApplicationUtil.DLL
----------------------------------------
Microsoft.NodeXL.Layouts
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Layouts.DLL
----------------------------------------
Microsoft.NodeXL.Visualization.Wpf
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Visualization.Wpf.DLL
----------------------------------------
Microsoft.NodeXL.Util
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Util.DLL
----------------------------------------
PresentationCore
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.4016 built by: GDR
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.4016 built by: GDR
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
Microsoft.NodeXL.Algorithms
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Algorithms.DLL
----------------------------------------
Microsoft.Research.WinFormsControls
    Assembly Version: 1.0.1.6
    Win32 Version: 1.0.1.6
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.Research.WinFormsControls.DLL
----------------------------------------
System.ServiceModel
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.4506.3636 (GDR.030729-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
WindowsFormsIntegration
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.1427 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/WindowsFormsIntegration/3.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
PresentationFramework
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.6920.4016 built by: GDR
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
Microsoft.NodeXL.Control.Wpf
    Assembly Version: 1.0.1.167
    Win32 Version: 1.0.1.167
    CodeBase: file:///C:/Documents%20and%20Settings/syuen/Local%20Settings/Apps/2.0/QP729YCM.1ET/2DPCX855.BWC/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Control.Wpf.DLL
----------------------------------------

May 8, 2011 at 6:34 PM
Edited May 8, 2011 at 6:35 PM

I do not know the cause of this problem, and it's one that is difficult to diagnose remotely.  I posted a question about it on a Microsoft programmers' forum to see if anyone else had a clue, and the only answer I received suggested that there might be something wrong with the particular user account on your computer, and that trying NodeXL from a new user account might provide some clues about what's going wrong.

http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/2b419217-2c5c-4a7b-a476-a31503022c0d

There is some merit to this idea, because we already know that there was something wrong with the Office installation on your computer.

So if you want to try an experiment (and I can't blame you if you don't want to bother), please do the following:

1. Uninstall NodeXL.

2. Create a new user account on your computer.  Instructions can be found at http://www.ehow.com/how_2078860_create-new-user-account-windows.html.

3. Log into the new user account.

4. From the new user account, install NodeXL.

5. From the new user account, try running NodeXL.  What happens?

-- Tony

Aug 22, 2011 at 4:02 PM
Edited Aug 22, 2011 at 4:06 PM

I stumbled upon a cause for this problem while investigating an unrelated issue.  The problem occurs when a certain security restriction is turned on in Excel.  To determine whether that is the cause on your computer, do the following:

1. Go to Excel button, Excel Options, Trust Center, Trust Center Settings, Add-ins.

2. Make sure that the following checkboxes are all unchecked: Require Application Add-ins to be signed by Trusted Publisher, Disable notification for unsigned add-ins (code will remain disabled), Disable all Application Add-ins (may impair functionality).

-- Tony

Feb 9, 2012 at 6:08 AM

This helped me too.

Thank you, Tony