在Windows XP计算机中加载图表对象时出错 [英] Error loading Chart object in Windows xp Machine
问题描述
大家好
我们使用visual studio 2008和office 2010开发了一个简单的c#Windows Form应用程序。当我尝试在用户计算机上部署应用程序时这是基于Windows XP和Office 2003使用应用程序exe文件所有工作
罚款,但我有以下错误,而从excel表接收 图表它给我以下错误消息。
We have developed a simple c# Windows Form application using visual studio 2008 and office 2010. When i try to deploy the application on user machine which is based on windows xp and office 2003 using the application exe file all things work fine however i have following error while receiving chart from excel sheet it gives me the following error message .
结束此消息详细说明了调用
the end of this message for details on invoking
实时(JIT)调试而不是此对话框。
just-in-time (JIT) debugging instead of this dialog box.
**************异常文本**************
************** Exception Text **************
系统。 Runtime.InteropServices.COMException(0x800A03EC):来自HRESULT的异常:0x800A03EC
System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC
在Microsoft.Office.Interop.Excel._Chart.Export(String Filename,Object FilterName,Object Interactive)
at Microsoft.Office.Interop.Excel._Chart.Export(String Filename, Object FilterName, Object Interactive)
at FactSheetsAutomation.ExcelDB.GetChartFromExcel(String sheet,String [] chartName,String [] name)在C:\ FactSheetAutomation \ 24-02-11 \FactSheetsAutomation\FactSheetsAutomation\DB Access \ ExcelDBs:line 54
at FactSheetsAutomation.ExcelDB.GetChartFromExcel(String sheet, String[] chartName, String[] name) in C:\FactSheetAutomation\24-02-11\FactSheetsAutomation\FactSheetsAutomation\DB Access\ExcelDB.cs:line 54
在FactSheetsAutomation.frmLatestTemplate.btnPerformanceGraph1_Click(Object sender,EventArgs e)中的C:\ FactSheetAutomation \ 24-02-11 \FactSheetsAutomation\FactSheetsAutomation\frmLatestTemplate.cs:第372行
at FactSheetsAutomation.frmLatestTemplate.btnPerformanceGraph1_Click(Object sender, EventArgs e) in C:\FactSheetAutomation\24-02-11\FactSheetsAutomation\FactSheetsAutomation\frmLatestTemplate.cs:line 372
  在System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
在System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在System.Windows.Forms.Control.WmMouseUp(消息& m,MouseButtons按钮,Int32点击)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在System.Windows.Forms.Control.WndProc(消息& m)
at System.Windows.Forms.Control.WndProc(Message& m)
在System.Windows.Forms.ButtonBase.WndProc(消息& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
在System.Windows.Forms.Button.WndProc(消息& m)
at System.Windows.Forms.Button.WndProc(Message& m)
在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
**************已加载的程序集**************
************** Loaded Assemblies **************
mscorlib
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3615(GDR.050727-3600)
Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
CodeBase:file:/// c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
------------ ----------------------------
----------------------------------------
FactSheetsAutomation
FactSheetsAutomation
   汇编版本:1.0.0.0
Assembly Version: 1.0.0.0
Win32版本:1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:file:/// C:/Debug/FactSheetsAutomation.exe
CodeBase: file:///C:/Debug/FactSheetsAutomation.exe
---------------------- ------------------
----------------------------------------
System.Windows.Forms
System.Windows.Forms
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
--- -------------------------------------
----------------------------------------
System
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3614(GDR.050727-3600)
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------- -----------------------------
----------------------------------------
System.Drawing
System.Drawing
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
------- ---------------------------------
----------------------------------------
System.Configuration
System.Configuration
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
------- ---------------------------------
----------------------------------------
System.Xml
System.Xml
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3082(QFE.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
------- ---------------------------------
----------------------------------------
System.Core
System.Core
汇编版本:3.5.0.0
Assembly Version: 3.5.0.0
Win32版本:3.5.30729.1内置:SP
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
------- ---------------------------------
----------------------------------------
Microsoft.Office.Interop。 Excel
Microsoft.Office.Interop.Excel
汇编版本:11.0.0.0
Assembly Version: 11.0.0.0
Win32版本:11.0.5530
Win32 Version: 11.0.5530
CodeBase:file:/// C:/Debug/Microsoft.Office.Interop.Excel.DLL
CodeBase: file:///C:/Debug/Microsoft.Office.Interop.Excel.DLL
---------------- ------------------------
----------------------------------------
** ************ JIT调试**************
************** JIT Debugging **************
启用实时(JIT)调试,此
To enable just-in-time (JIT) debugging, the .config file for this
应用程序或计算机(machine.config)的.config文件必须在system.windows.forms中设置
application or computer (machine.config) must have the
jitDebugging值部分。
jitDebugging value set in the system.windows.forms section.
还必须使用调试
编译应用程序。
例如:
< configuration>
<configuration>
&NBSP;&NBSP; < system.windows.forms jitDebugging =" true" />
<system.windows.forms jitDebugging="true" />
< / configuration>
</configuration>
启用JIT调试时,任何未处理的异常
When JIT debugging is enabled, any unhandled exception
将被发送到计算机上注册的JIT调试器
will be sent to the JIT debugger registered on the computer
,而不是由此对话框处理。
rather than be handled by this dialog box.
[10/03/2011 16:40:04] sara:有关调用
[10/03/2011 16:40:04] sara: See the end of this message for details on invoking
实时(JIT)调试的详细信息,请参阅此消息的结尾而不是此对话框。
just-in-time (JIT) debugging instead of this dialog box.
**************例外文字**** **********
************** Exception Text **************
System.Runtime.InteropServices.COMException(0x800A03EC):ChartObjects类的Item方法失败
System.Runtime.InteropServices.COMException (0x800A03EC): Item method of ChartObjects class failed
  ;&NBSP; at System.RuntimeType.ForwardCallToInvokeMember(String memberName,BindingFlags flags,Object target,Int32 [] aWrapperTypes,MessageData& msgData)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
在Microsoft.Office.Interop.Excel.ChartObjects.Item(对象索引)
at Microsoft.Office.Interop.Excel.ChartObjects.Item(Object Index)
at FactSheetsAutomation.ExcelDB.GetChartFromExcel(String sheet,String [] chartName,String [] name)在C:\ FactSheetAutomation \ 24-02-11\FactSheetsAutomation\FactSheetsAutomation\DB Access \ ExcelDBs:line 51
at FactSheetsAutomation.ExcelDB.GetChartFromExcel(String sheet, String[] chartName, String[] name) in C:\FactSheetAutomation\24-02-11\FactSheetsAutomation\FactSheetsAutomation\DB Access\ExcelDB.cs:line 51
在FactSheetsAutomation.frmLatestTemplate.btnPerformanceGraph1_Click(Object sender,EventArgs e)中的C:\ FactSheetAutomation \ 24-02-11 \FactSheetsAutomation\FactSheetsAutomation\frmLatestTemplate.cs:第372行
at FactSheetsAutomation.frmLatestTemplate.btnPerformanceGraph1_Click(Object sender, EventArgs e) in C:\FactSheetAutomation\24-02-11\FactSheetsAutomation\FactSheetsAutomation\frmLatestTemplate.cs:line 372
&NBSP;&NBSP;在System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
在System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
在System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在System.Windows.Forms.Control.WmMouseUp(消息& m,MouseButtons按钮,Int32点击)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在System.Windows.Forms.Control.WndProc(消息& m)
at System.Windows.Forms.Control.WndProc(Message& m)
在System.Windows.Forms.ButtonBase.WndProc(消息& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
在System.Windows.Forms.Button.WndProc(消息& m)
at System.Windows.Forms.Button.WndProc(Message& m)
在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(消息& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
**************已加载的程序集**************
************** Loaded Assemblies **************
mscorlib
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3615(GDR.050727-3600)
Win32 Version: 2.0.50727.3615 (GDR.050727-3600)
CodeBase:file:/// c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
------------ ----------------------------
----------------------------------------
FactSheetsAutomation
FactSheetsAutomation
&NBSP;&NBSP; 汇编版本:1.0.0.0
Assembly Version: 1.0.0.0
Win32版本:1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:file:/// C:/Debug/FactSheetsAutomation.exe
CodeBase: file:///C:/Debug/FactSheetsAutomation.exe
---------------------- ------------------
----------------------------------------
System.Windows.Forms
System.Windows.Forms
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
--- -------------------------------------
----------------------------------------
System
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3614(GDR.050727-3600)
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------- -----------------------------
----------------------------------------
System.Drawing
System.Drawing
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
------- ---------------------------------
----------------------------------------
System.Configuration
System.Configuration
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
------- ---------------------------------
----------------------------------------
System.Xml
System.Xml
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3082(QFE.050727-3000)
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
------- ---------------------------------
----------------------------------------
System.Core
System.Core
汇编版本:3.5.0.0
Assembly Version: 3.5.0.0
Win32版本:3.5.30729.1内置:SP
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
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
------- ---------------------------------
----------------------------------------
Microsoft.Office.Interop。 Excel
Microsoft.Office.Interop.Excel
汇编版本:11.0.0.0
Assembly Version: 11.0.0.0
Win32版本:11.0.5530
Win32 Version: 11.0.5530
CodeBase:file:/// C:/Debug/Microsoft.Office.Interop.Excel.DLL
CodeBase: file:///C:/Debug/Microsoft.Office.Interop.Excel.DLL
---------------- ------------------------
----------------------------------------
PdfSharp
; 汇编版本:1.31.1789.0
Assembly Version: 1.31.1789.0
Win32版本:1.31.1789.0
Win32 Version: 1.31.1789.0
CodeBase:file:/// C:/Debug/PdfSharp.DLL
CodeBase: file:///C:/Debug/PdfSharp.DLL
---------------------- ------------------
----------------------------------------
GoogleTranslateAPI
GoogleTranslateAPI
汇编版本:0.4.0.133
Assembly Version: 0.4.0.133
Win32版本:0.4.0.133
Win32 Version: 0.4.0.133
CodeBase:file:/// C:/Debug/GoogleTranslateAPI.DLL
CodeBase: file:///C:/Debug/GoogleTranslateAPI.DLL
---------------------- ------------------
----------------------------------------
Newtonsoft.Json
Newtonsoft.Json
汇编版本:3.5.0.0
Assembly Version: 3.5.0.0
Win32版本:3.5.0.0
Win32 Version: 3.5.0.0
CodeBase:file:/// C:/Debug/Newtonsoft.Json.DLL
CodeBase: file:///C:/Debug/Newtonsoft.Json.DLL
-------------------- --------------------
----------------------------------------
System.ComponentModel.DataAnnotations
System.ComponentModel.DataAnnotations
; 汇编版本:3.5.0.0
Assembly Version: 3.5.0.0
Win32版本:3.5.30729.1
Win32 Version: 3.5.30729.1
CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
--- -------------------------------------
----------------------------------------
系统。 Runtime.Serialization
System.Runtime.Serialization
汇编版本:3.0.0.0
Assembly Version: 3.0.0.0
Win32版本:3.0.4506.3636(GDR.030729-3600)
Win32 Version: 3.0.4506.3636 (GDR.030729-3600)
CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
--- -------------------------------------
----------------------------------------
系统。数据
汇编版本:2.0.0.0
Assembly Version: 2.0.0.0
Win32版本:2.0.50727.3053(netfxsp.050727-3000)
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase:file:/// C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
------- ---------------------------------
----------------------------------------
************** JIT调试**************
************** JIT Debugging **************
启用实时(JIT)调试,此
To enable just-in-time (JIT) debugging, the .config file for this
应用程序或计算机(machine.config)的.config文件必须具有
application or computer (machine.config) must have the
jitDebugging system.windows.forms部分中设置的值。
jitDebugging value set in the system.windows.forms section.
还必须使用调试
编译应用程序。
例如:
< configuration>
<configuration>
< system.windows.forms jitDebugging =" true" />
<system.windows.forms jitDebugging="true" />
< / configuration>
</configuration>
启用JIT调试时,任何未处理的异常
When JIT debugging is enabled, any unhandled exception
将被发送到计算机上注册的JIT调试器
will be sent to the JIT debugger registered on the computer
,而不是由此对话框处理。
rather than be handled by this dialog box.
任何人都可以帮我解决这个问题。
Can any one of you could help me to resolve this problem.
推荐答案
Hi Tabbasi,
Hi Tabbasi,
可能是COMException的几种可能原因0x800A03EC &NBSP;您可以先检查此线程中的解决方案是否可以帮助您解决问题,
http://www.eggheadcafe.com/software/aspnet/30644884/chartexport-throws-comexception-0x800a03ec.aspx 。
It may be several possible causes of the COMException 0x800A03EC. You can first check whether the solution in this thread can help you solve the issue, http://www.eggheadcafe.com/software/aspnet/30644884/chartexport-throws-comexception-0x800a03ec.aspx.
如果它没有解决问题,你能不能分享一些重复例外的示例代码? 对我们进行进一步的故障排除会很有帮助。
If it does not solve the issue, could you please share some sample codes which repro the exception as well? It will be much helpful for us to do further troubleshooting.
美好的一天!
谢谢
这篇关于在Windows XP计算机中加载图表对象时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!