我一直在网上搜索过去几个小时,找到了很多与我的问题有关的信息 - 但没有一个真正修复它们.
我的机器是64位,安装了32位Visual Studio 10.解决方案使用.Net 4.解决方案包括64位Crystal Reports安装.解决方案还包括log4net.
在VS2010中编译项目对于Debug和Release,任何cpu都是可以的.
我添加了一个我想要构建的Web安装项目.但是,无论配置如何,编译时都会出现以下错误(在VS UI和命令行中使用devenv.exe):
ERROR: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.XmlSerialize.dll' targeting 'AMD64' is not compatible with the project's target platform …Run Code Online (Sandbox Code Playgroud)