The type initializer for '<Module>' threw an exception

Jun 27, 2011 at 10:53 AM

Hello,

I'd like to ask for help: I have NodeXL installed on Excel2010 and Windows XP with SP3, but I keep getting the error message in the title. I'll be happy for any assistance.

Thank you in advance

Hadas

Jun 27, 2011 at 6:39 PM

Hadas:

Is there a "Details" button that appears along with the error message in the title?  If so, please click it and copy/paste the details here.

Thanks,
    Tony

Jun 27, 2011 at 8:03 PM

Hi Tony,

 

Thank you for replying! I'm pasting it all.

 

************** Exception Text **************System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization. ---> System.ComponentModel.Win32Exception: The system cannot find the file specified   at CModuleInitialize.LoadWpfGfx(CModuleInitialize* )   at CModuleInitialize.{ctor}(CModuleInitialize* )   at ?A0x0b283f3b.??__E?A0x0b283f3b@cmiStartupRunner@@YMXXZ()   at _initterm_m((fnptr)* pfbegin, (fnptr)* pfend)   at <CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain(LanguageSupport* )   at <CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* )   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )   --- End of inner exception stack trace ---   at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )   at .cctor()   --- End of inner exception stack trace ---   at Microsoft.NodeXL.ExcelTemplate.TaskPane.InitializeComponent()   at Microsoft.NodeXL.ExcelTemplate.TaskPane..ctor(ThisWorkbook thisWorkbook, Ribbon ribbon)   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.3623 (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.3620 (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----------------------------------------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.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----------------------------------------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----------------------------------------System.Windows.Forms    Assembly Version: 2.0.0.0    Win32 Version: 2.0.50727.3623 (GDR.050727-3600)    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----------------------------------------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.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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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: 14.0.0.0    Win32 Version: 14.0.4756.1000    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.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.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----------------------------------------Anonymously Hosted DynamicMethods Assembly    Assembly Version: 0.0.0.0    Win32 Version: 2.0.50727.3623 (GDR.050727-3600)    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.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.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.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----------------------------------------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.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.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----------------------------------------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----------------------------------------Microsoft.NodeXL.Core    Assembly Version: 1.0.1.167    Win32 Version: 1.0.1.167    CodeBase: file:///C:/Documents%20and%20Settings/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/micr..vsto_89bba316835ec8ea_0001.0000_bb5be0219b98f672/Microsoft.NodeXL.Util.DLL----------------------------------------PresentationCore    Assembly Version: 3.0.0.0    Win32 Version: 3.0.6920.1427 built by: SP    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.1427 built by: SP    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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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/Hadas.HADAS-497E1266A/Local%20Settings/Apps/2.0/JEVQT96B.MPA/BTAWOHZ4.EQ0/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----------------------------------------


Jun 29, 2011 at 5:14 AM

I haven't been able to figure this one out yet.  It's the first time I've heard of this particular error with NodeXL, although it appears to have happened to other people with other programs.  The most relevant post I could find is this:

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/9878e784-e8ef-439b-81b5-aac20aa1a26d

Two of the posters there mentioned other languages -- Spanish and Swedish.  May I ask what language your computer is set to?  Perhaps that's a common thread.

Thanks,
    Tony

Jun 29, 2011 at 5:46 AM

Hi Tony,

 

My computer is set to Hebrew, but I still haven't installed the Office 2010 language pack. I'll try and let you know.

 

Thank you very much!

Hadas

Jun 30, 2011 at 2:55 PM

Hi,

 

I have installed the language pack, but I'm afraid it still gives me the same error:(

 

Hadas