Cannot get beta version of IIS Express 8 to run a website as a 64-bit process

on x64 Windows 7 I am trying to get hi world world MVC 3 running as a 64 bit process (therefore Environment.Is64BitProcess returns true on the page) using the latest beta version of IIS Express 8.

IIS Express 7.5 is 32 bits, but IIS Express 8 supports 64 bits ( http://learn.iis.net/page.aspx/1266/iis-80-express-beta-readme/ ).

It is impossible to get 64-bit love.

Building AnyCpu returns Is64BitProcess false, in the x64 building appears "Attempting to load a program with the wrong format", as if it was trying to work as a 32-bit process.

Experiments with renaming folders, etc. assume that " C: \ Program Files (x86) \ IIS Express " is just what gets used to, and " C: \ Program Files \ IIS Express" is ignored by VS.

How can I get VS to use the x64 IIS Express host?

+50
64bit iis-express
Apr 18 2018-12-12T00:
source share
10 answers

This option is now part of Vs 2013/2015/2017:

Tools | Options | Projects and Solutions | Web projects | Use 64 bit IIS Express

+79
Apr 30 '14 at 13:21
source share

From Microsoft's response to the forum post http://visualstudio.uservoice.com -

This works for me, although Microsoft is not officially supported or not supported.

Mike Harder (Microsoft) commented on January 31, 2013 at 5:26 pm

You can configure Visual Studio 2012 to use the 64-bit version of IIS Express by installing the following registry key:

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

However, this feature is not supported and has not been fully tested by Microsoft. Improved support for the 64-bit version of IIS Express is a consideration of the next release of Visual Studio.

Allow 64-bit IIS Express to start from Visual Studio 2012

+32
Mar 19 '13 at 4:13
source share

Late side, but VS2013 has this in the settings.

Tools → Options → Projects and Solutions → Web Projects → Use the 64-bit version of IIS Express ...

+5
May 15 '14 at 2:57
source share

In this case, you should run iisexpress from the command line,

http://learn.iis.net/page.aspx/870/running-iis-express-from-the-command-line/

I'm not sure when Microsoft will update the VS integration part so that you can choose x64 IIS Express. The current integration is obviously only x86.

+3
Apr 18 2018-12-12T00:
source share

In the registry, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\IISExpress\8.0\InstallPath and change the path to the 64-bit iisexpress.exe .

+3
Jan 28 '13 at 15:40
source share

Follow these steps to run the VS2012 project on an x64 project on IIS8 Express on x64. I am running x64 WCF service. See below,

  • Install x64 version of IIS Express 8 .

  • Define a project to run x64 bits.

enter image description here

  • Add the URL of the custom web server. Since you do not want to start the service when you start the project (F5).

enter image description here - Write a bat file and add the following. Place the correct inaccurate location of the applicationhost.config file and the correct project name. Save the bat file.

 cd "Program Files"/IIS Express iisexpress.exe /config:"\\companyname.com\root\User-Profiles\testusername\Documents\IISExpress\config\applicationhost.config" /site:"YourProjectName.WcfHost" /apppool:"Clr4IntegratedAppPool" 
  • Run the (F5) project.
  • Double-click the bat file to launch IIS Express 8 for x64. See Windows Task Manager and the IIS Express system tray. enter image description here

enter image description here

+2
Jul 09 '13 at 3:24
source share

You can start IIS Express in 64-bit mode from the command line, and then use VS "attach to process" for debugging.
See this question .
Enjoy.

+1
Sep 12
source share

It seems that creating an EXE that does nothing but launches the 64-bit IIS and puts it instead of the 32-bit iisexpress.exe does the job.

This is the C # code that I used to create the EXE:

 using System.Diagnostics; namespace IISExpress64 { class Program { static void Main( string[] args ) { Process.Start( @"C:\Program Files\IIS Express\iisexpress.exe", string.Join( " ", args ) ); } } } 
+1
Jan 23 '13 at 16:47
source share

A simple opportunity is to simply install IIS x64 as the initial program for the WEB project:

Project Properties → Web → Action → Run Program: c: \ Program Files \ IIS Express \ iisexpress.exe command arguments: / path: {yourProjectPath} / port: {yourPort}

+1
Apr 05 '13 at
source share

To solve this problem on my system, I cheated - I copied 64-bit executables (in \Program Files\IIS Express\ ) to 32-bit executables (in \Program Files (x86)\IIS Express\ ). Visual Studio doesn't seem to care if this is this or that.

I think we will have to wait and see if the final version of VS 2012 allows us to choose between 32-bit and 64-bit IIS Express.

-3
Jul 01 2018-12-12T00:
source share



All Articles