How do I test running my ASP.NET web app as a 64-bit process on a development server with VS2010?

64-bit, asp.net, iis, visual-studio-2010

Solution

We had the same problem and when the team jumped to Visual Studio 2012, this registry key was really useful to us :

you can add a registry key to force visual studio to use the 64 bits version of iisexpress.exe ; unfortunately for you, it is a VS2012-only solution.

reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\WebProjects
    /v Use64BitIISExpress /t REG_DWORD /d 1

Then restart Visual Studio and tick [X] Use IIS Express in your settings.

(see also the source).

UPDATE: For reference, in Visual 2013, this option can be found in the interface : Options/Projects and Solutions/Web Projects/Use the 64 bit version of IIS Express for web sites and projects

Problem

My task is simple: I need to test my ASP.NET web application in a 64-bit environment on my development machine. (At this point I don't even ask about running it through a debugger. All I need is to run it in a 64-bit process.) So I created a stock C# Web Application in Visual Studio 2010 and adjusted its properties as such: I then did Ctrl+F5 (or run without debugging) and IE loaded up and hangs up like so: What am I doing wrong here? PS. Running it on Windows 7 Ultimate (64-bit).

Original source