我有一个使用MSSQL数据库并为此VisualStudio安装项目生成的项目的解决方案。然后我做了一个安装程序类的另一个项目,应该在安装中部署我的数据库。VisualStudio安装项目:通过CustomAction部署包含数据库的项目BadImageFormatException
因此,我使用this教程生成了CustomAction安装程序类,并尝试使用类似于C#Solution的this。
现在,当我运行安装项目和IM想安装我的申请,我总是得到一个错误:
While initializing the installation an exception occurred: System.BadImageFormatException: File or assembly ... \ CustomAction.dll or one of its dependencies not found. The assembly is inserted by a term that is more recent than the currently loaded term, and can not be loaded.
我希望错误是可以理解的,我从德国到englisch翻译吧...
因此,我很感激任何提示或技巧来解决这个问题。
问候
这对测井thx帮助很大。但它认为这是VStudio2010的一个问题,安装程序类在msdn上找到了一些问题。当我记住链接时,我会在这里发布。四处走动是用控制台项目替换安装程序类。这对我来说很好。 – Mark 2010-12-07 09:11:15