我正在處理c#vsto(excel),並且我創建了excel 2007項目安裝程序。項目在Office 2007中正常工作,但是在Office 2010中打開它時,它開始創建問題。獲取異常system.AppDomainUnloadedexception:線程運行的應用程序域已被卸載
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
爲什麼在啓動時關閉工作簿? – SliverNinja