我在 Visual Studio 2010 中有一个 Web 部署项目,无法在 Windows Server 2008 R2 机器上安装并出现错误 1603。打开 msi 日志记录后,我看到:
ERROR : [06/13/2011 10:54:15:722] [RegisterAspNet]:
The error indicates that IIS is in 64 bit mode, while this application is a 32 bit application and thus not compatible.
这确实是一个 64 位的盒子,我尝试安装的应用程序池确实是 64 位(启用 32 位应用程序是错误的,应该是这样)....但是我所有的 dll 都是用任何 CPU 构建的并且 vdproj 本身的目标平台设置为 x64 ......所以我不知道为什么会失败。
我也尝试过为服务器启用 IIS 6 兼容性选项,因为我读过其他人遇到过类似问题,这些问题已通过这样做得到解决……但这样做没有任何区别。
有人遇到过这个或有什么建议吗?
更新:有趣的是安装失败并出现两个完全冲突的错误:
Running process 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe' with parameters ' -norestart -sn "W3SVC/1/Root/ISV\xxx"' silently...
INFO : [06/13/2011 12:21:16:329] [RegisterAspNet ]: Process Call Result Code: '0' Process Exit Code: '1'.
ERROR : [06/13/2011 12:21:16:329] [RegisterAspNet ]: The error indicates that IIS is in 32 bit mode, while this application is a 64 bit application and thus not compatible.
INFO : [06/13/2011 12:21:16:329] [RegisterAspNet ]: Trying 32 bit version of 'aspnet_regiis.exe'...
INFO : [06/13/2011 12:21:16:329] [RegisterAspNet ]: Reading registry value Path from key 'HKLM\Software\Microsoft\ASP.NET\4.0.30319.0'...
INFO : [06/13/2011 12:21:16:329] [RegisterAspNet ]: RESULT Path =
INFO : [06/13/2011 12:21:16:329] [RegisterAspNet ]: Running process 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe' with parameters ' -norestart -sn "W3SVC/1/Root/ISV\xxx"' silently...
INFO : [06/13/2011 12:21:16:438] [RegisterAspNet ]: Process Call Result Code: '0' Process Exit Code: '1'.
ERROR : [06/13/2011 12:21:16:438] [RegisterAspNet ]: The error indicates that IIS is in 64 bit mode, while this application is a 32 bit application and thus not compatible.
ERROR : [06/13/2011 12:21:16:438] [RegisterAspNet ]: FAILED: -2147024895
ERROR : [06/13/2011 12:21:16:438] [RegisterAspNet ]: Custom Action failed with code: '0'
INFO : [06/13/2011 12:21:16:438] [RegisterAspNet ]: Custom Action completed with return code: '1'
在上面,它说 IIS 处于 32 位模式......然后它说它处于 64 位模式......不知道这里发生了什么......