【发布时间】:2012-06-09 02:48:13
【问题描述】:
我正在使用 c# vsto (excel) 并且我已经创建了 excel 2007 项目安装程序。项目在 Office 2007 中运行良好,但在 Office 2010 中打开时,它开始产生问题。
System.AppDomainUnloadedexception: the application domain in which thread was running has been unloaded
有人知道吗?
更新: 我刚刚再次检查了我的代码:
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
{
.
.
.
this.Close(Type.Missing, Type.Missing, Type.Missing);
.
.
}
this.close 例外
【问题讨论】:
-
为什么要在启动时关闭工作簿?