I have a web deployment project in Visual Studio 2010 that is failing to install on a Windows Server 2008 R2 box with error 1603. After turning on msi logging, I see:
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.
This is indeed a 64 bit box and the app pool I'm trying to install to is indeed 64 bit (Enable 32 bit applications is false, and should be this way)....but all of my dlls are built with Any CPU and the vdproj itself has target platform set to x64...so I don't know why this is failing.
I've also tried enabling IIS 6 Compatibility options for the server, as I've read about others who have had similar problems that have been fixed by doing this...but do so makes no difference.
Anyone encountered this or have any suggestions?
UPDATE: Sort of interesting is that the install fails with two completely conflicting errors:
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'
In the above, it says IIS is in 32 bit mode...then it says it's in 64 bit mode...not sure what's going on here...