在Visual Studio中运行testing会导致Excel错误

我使用C#与Selenium进行testing,Excel Interop则报告testing结果。

当我在Visual Studio中运行我的testing时,它显示以下错误:

在这里输入图像说明

点击Debug,打开Visual Studio Just-In-Time Debugger,当我debugging时,我得到以下消息:

0x7c812afb在excel.exe中的未处理的exception:0xe0000002:0xe0000002。

excel.exe [3920]中发生未处理的win32exception。

有没有人遇到这样的错误? 任何人都可以build议我解决这个问题吗? 提前致谢。

事件查看器显示:错误应用程序excel.exe,版本12.0.6545.5000,邮票4c654035,错误模块ntdll.dll,版本5.1.2600.6055,邮票4d00f27d,debugging? 0,故障地址0x00019af2。

也许检查出来的问题不是ntdll.dll? 谷歌快速search给了我这个网页: http ://pcsupport.about.com/od/fixtheproblem/a/ntdlldll.htm