Microsoft Excel 12.0对象库

我用微软的互操作库Microsoft Excel 12.0 Object Library构build了一个应用程序

应用程序只是在Excel表格中写入价格,然后向用户显示Excel表格

客户端不断收到错误

有关调用实时(JIT)debugging的详细信息,请参阅此消息的结尾,而不是此对话框。

例外文本:

 System.Runtime.InteropServices.COMException(0x80040154):检索具有CLSID {50E4D830-B0BD-4DB5-94DB-CC5AB547CDA9}的组件的COM类工厂失败,原因如下:80040154。
   在FXCM.Order2Go.Examples.RatesExampleForm.Login()
   在FXCM.Order2Go.Examples.RatesExampleForm.buttonLogin_Click(Object sender,EventArgs e)
   在System.Windows.Forms.Control.OnClick(EventArgs e)
   在System.Windows.Forms.Button.OnClick(EventArgs e)
   在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   在System.Windows.Forms.Control.WmMouseUp(Message&m,MouseButtonsbutton,Int32点击)
   在System.Windows.Forms.Control.WndProc(Message&m)
   在System.Windows.Forms.ButtonBase.WndProc(消息&m)
   在System.Windows.Forms.Button.WndProc(Message&m)
   在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息&m)
   在System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息&m)
   在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)

加载组件:

 mscorlib程序
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4952(win7RTMGDR.050727-4900)
     CodeBase:file:/// C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

 RatesExample
    程序集版本:1.0.0.0
     Win32版本:1.0.0.0
     CodeBase:file:/// E:/examples/Examples/CS/RatesExample/bin/Release/RatesExample.exe

 System.Windows.Forms的
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
     CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

系统
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
     CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

 System.Drawing中
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
     CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

系统configuration
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
     CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

的System.Xml
    程序集版本:2.0.0.0
     Win32版本:2.0.50727.4927(NetFXspW7.050727-4900)
     CodeBase:file:/// C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

 Interop.FXCore
    程序集版本:1.0.0.0
     Win32版本:1.0.0.0
     CodeBase:file:/// E:/examples/Examples/CS/RatesExample/bin/Release/Interop.FXCore.DLL

JITdebugging:

要启用实时(JIT)debugging,此应用程序或计算机的.config文件(machine.config)必须在system.windows.forms部分中设置jitDebugging值。 应用程序还必须在启用debugging的情况下编译。

例如:

<configuration> <system.windows.forms jitDebugging="true" /> </configuration> 

启用JITdebugging时,任何未处理的exception将被发送到在计算机上注册的JITdebugging器,而不是由此对话框处理。

这看起来像加载与GUID 50E4D830-B0BD-4DB5-94DB-CC5AB547CDA9而不是Excel 12 COM组件的问题。尝试安装/注册似乎是“fxcore”,Orders2Go的某些部分?