0

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?

NitroxDM
  • 5,039
  • 10
  • 44
  • 56
  • Is this for Website project or Web Application Project? Can you explain repro steps a bit more? – Sayed Ibrahim Hashimi Feb 11 '12 at 23:52
  • @Sayed Ibrahim Hashimi - I don't know. The icon looks like Web Application but is missing the C#. When I right click and hit properties I get a dialog box. When I go to the properties on the other Web Application I get the properties page. The dialog is missing Application, Web, Package, Build Events, Resources, setting, Reg Path, and Signing. – NitroxDM Feb 15 '12 at 18:00
  • Have a look at: http://stackoverflow.com/questions/19957692/visual-studio-2013-calls-32-bit-aspnet-compiler-instead-of-64-bit-one i think thats the same problem. – ahorak Nov 14 '13 at 08:56

0 Answers0