我有一个在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