I'm setting up a new build server. I can't get the project to build because of this error running 32 bit msbuild:
(Build target) ->
ASPNETCOMPILER : error ASPCONFIG: Could not load file or assembly 'System.Data' or one of its dependencies. An attempt was made to load a program with an incorrect format. [c:\code\Mobile.metaproj]
The 32 bit msbuild calls:
c:\code>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /Mobile -p Mobile\ -f -d PrecompiledWeb\Mobile\
I found one way around it by using the 64 bit version:
E:\code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v /Mobile -p Mobile\ -f -d PrecompiledWeb\Mobile\
Using the 64 bit version of msbuild the mobile site builds fine but then silver light project will not build.
It's a catch 22!!!
How do I tell the 32 bit msbuild to call the 64 bit aspnet_compiler?
How to I correct the 32 bit aspnet_compiler?