we have a cc.net build server on a win 2003 32 bit server. We're building our web projects with Targets="ResolveReferences;_WPPCopyWebApplication"
. We're deploying the results to a 64-bit web server. The problem is that _WPPCopyWebApplication
seems to add some system dlls (System.Data, PresentationCore, System.Web) to the /bin-output folder, which breaks on our 64 bit server, since the dlls are 32 bit. We're building with AnyCPU-option.
我们在win 2003 32位服务器上有一个cc.net构建服务器。我们正在使用Targets =“ResolveReferences; _WPPCopyWebApplication”构建我们的Web项目。我们将结果部署到64位Web服务器。问题是_WPPCopyWebApplication似乎将一些系统dll(System.Data,PresentationCore,System.Web)添加到/ bin-output文件夹,该文件夹在我们的64位服务器上中断,因为dll是32位。我们正在使用AnyCPU选项构建。
1 个解决方案
#1
3
when you try to run your web server on 64 bit platform .net uses optimized for x64 system assemblies. therefore your web server crashes. I may be wrong in detailes, but the error in mixing platforms (x86/x64).
当您尝试在64位平台上运行Web服务器时.net使用针对x64系统程序集优化的。因此您的Web服务器崩溃了。我在详细说明中可能是错的,但混合平台中的错误(x86 / x64)。
I can suggest to compile on your 32 bit build machine with configuration x86. then x64 server will have to use only 32 bit dlls. When your build machine will be migrated to x64, you can set projects back to AnyCPU.
我建议在配置x86的32位构建机器上进行编译。然后x64服务器将只使用32位dll。将构建计算机迁移到x64时,可以将项目设置回AnyCPU。
#1
3
when you try to run your web server on 64 bit platform .net uses optimized for x64 system assemblies. therefore your web server crashes. I may be wrong in detailes, but the error in mixing platforms (x86/x64).
当您尝试在64位平台上运行Web服务器时.net使用针对x64系统程序集优化的。因此您的Web服务器崩溃了。我在详细说明中可能是错的,但混合平台中的错误(x86 / x64)。
I can suggest to compile on your 32 bit build machine with configuration x86. then x64 server will have to use only 32 bit dlls. When your build machine will be migrated to x64, you can set projects back to AnyCPU.
我建议在配置x86的32位构建机器上进行编译。然后x64服务器将只使用32位dll。将构建计算机迁移到x64时,可以将项目设置回AnyCPU。