我电脑上的EXCEl版本是2003,导出EXCEL文件时正常..
,,我在一台运行EXCEL2007的电脑上运行时确有这样的提示错误
Retrieving the COM class factory for component with CLSID {00024500-0000-000
...
我想知道的是碰到这样的问题如何解决?
...全文
3879打赏收藏
C#导出Excel文件时出现问题.帮忙解决下
我电脑上的EXCEl版本是2003,导出EXCEL文件时正常.. ,,我在一台运行EXCEL2007的电脑上运行时确有这样的提示错误 Retrieving the COM class factory for component with CLSID {00024500-0000-000 ... 我想知道的是碰到这样的问题如何解决?
错误.详尽信息是:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.DirectoryNotFoundException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070003.
at U8Work1.config.ExportToExcel(SqlConnection conn, String[] SqlString, String PathName, Boolean State)
at U8Work1.FrmMain.btnTransTo_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.