我有一個在Windows XP和Windows 7個人電腦上運行在我們公司工作場所的應用程序。錯誤1001 LoaderExceptions
該應用程序使用Visual Studio 2008構建,並且沒有添加任何新組件。
該解決方案包括,如果人想啓動應用程序通過詢問重寫承諾事件Visual Studio安裝:
public AcpInstaller() : base() {
this.Committed += new InstallEventHandler(MyInstaller_Committed);
}
void MyInstaller_Committed(object sender, InstallEventArgs e) {
if (MessageBox.Show("Start ACP Suite now?", "Launch Application?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
try {
Process p = new Process()
{
StartInfo = new ProcessStartInfo(Context.Parameters["assemblypath"])
};
p.Start();
} catch (Exception err) {
MessageBox.Show(err.Message, "Launch Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
我們最近增加了一些新的惠普Mini上網本。這些有1.66GHz的Atom處理器,2GB的RAM和Win7 Pro x32。
Error 1001. Unable to get installer types in the <executable> assembly. --> Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
所有網頁顯示了從VS2005將VS2008或VS2008 VS2010來,當人們得到這個。
這不是我的情況。
我的安裝程序和應用程序目前的運行方式與其他PC上應該一樣,但是我正在測試的這款上網本給我帶來了問題。
我如何知道這個LoaderException是什麼?我無法查看調試器,因爲這是在安裝過程中(即不在調試過程中),它發生在完全不同的機器上。
我發現自己回到這裏(兩次了)。對於這個特定的LabelView控件,卸載我的程序將「取消註冊」LabelView DLL。要「重新註冊」該DLL,我所要做的就是再次打開LabelView,然後重新編譯安裝程序。 – jp2code 2013-08-29 16:28:23