Compiling ASP.NET projects on x64

What are the basic steps involved in compiling to x64 for ASP.NET 2.0

In Configuration Manager I've created a Solution Configuration of "Debug x64" and set the Active Solution Platform to "x64". I've set the Configuration and Platform dropdowns on all the projects to the above and checked the Build checkbox on all of them. A Rebuild All skips all my assembly projects but then attempts to build the website which then fails because its assembly dependencies have not been built.

Why is it skipping my assemblies Can it not find the 64-bit version of the .NET framework on its own, or do I have to set that somewhere

Thanks,

Terry




Answer this question

Compiling ASP.NET projects on x64

  • Paula M

    Ken -- thanks!

    Does this "force" the 32 bit mode, or enable it

    When I finally get rid of the foxpro requirement (it will be a great day, and I'll be buying pints!!!) can I then set this back to the default setting Maybe with the bit at the end of the line


  • Rober7

    For web projects, the location of the web site will determine the processor architecture for the project. The version of ASP.NET you have registered will be used.

    Do you get any errors when it skips building the assemblies

    Can you describe your setup a little more (the architecture of the machine you are developing on, the architecture of the machine you are targeting (if different), what version of visual studio you are using (express, architect, etc), and if you installed the x64 version or not. Thanks!


  • Wee Bubba

    Yes same script as before just pass a 0 instead of a 1


  • none33333333

    Don't mean to jump in on this and interupt anything....

    but I am designing on a x86 Windows XP Pro / visula Studio box, and using a network file copy utility to deploy into a production environment that happens to be a Windows Server 2003 X64 box.

    I don't do anything different -- just a file copy and it gets compiled on the fly in x64 mode.

    How do I know this I am trying to use VFPOLEDB to access FoxPro data and the app can't find it (since it is a x86 only provider).

    So -- not sure if this sheds any light, but I have a dangling problem about the reverse of yours.... how do I force the app to run in x86 mode regardless of the platform


  • ReneeC

    cool.... but can I get it back into x64 mode in the future


  • Zulbaric

    You can not set what cpu to compile a web application for. You can put IIS in 32 bit mode by running this script.

    cscript %SystemDrive%\inetpub\AdminScripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1



  • RMS

    It puts IIS in 32 bit mode


  • Compiling ASP.NET projects on x64