Can't get IIS Express 8 beta to run website as 64-bit process

后端 未结 10 2325
南方客
南方客 2020-11-27 03:08

on x64 Windows 7 I am trying to get hello world MVC 3 website running as 64-bit process (so Environment.Is64BitProcess returns true on a page) using IIS Express 8 latest bet

10条回答
  •  猫巷女王i
    2020-11-27 03:46

    It seems that creating EXE that does nothing else but start 64-bit IIS and putting it in place of 32-bit iisexpress.exe does the job.

    This is C# code 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 ) );
            }
        }
    }
    

提交回复
热议问题