Q:
I have just installed EP.NET on Windows 2008 Server 64-bit. I am getting the error:
 
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Note: you may also see the words " BadImageFormatException"

Q:
Does the software run on a 64-bit OS?

A:
Yes, any 32-bit ASP.NET application can be run on Windows 64-bit OS, but a modification must be made, first.
Please create a separate Application Pool for the EP.NET Web site / virtual directory and enable 32-bit support in its advanced settings.


If you are running Windows 2003 Server 64-bit then follow the steps below to have your EP instance running properly.
Note: On 64bit OS running of 32bit and 64bit Web applications simultaneously is not allowed.

Windows Server 2003TM, Service Pack 1 enables IIS 6.0 to run 32-bit Web applications on 64-bit Windows using the Windows-32-on-Windows-64 (WOW64) compatibility layer. IIS 6.0 using WOW64 is intended to run 32-bit personal productivity applications needed by software developers and administrators, including 32-bit Internet Information Services (IIS) Web applications.

To enable IIS 6.0 to run 32-bit applications on 64-bit Windows
  1. Open a command prompt and navigate to the %systemdrive%\Inetpub\AdminScripts directory.

  2. Type the following command:

    cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true

  3. Press ENTER.


Article ID: 80, Created On: 12/16/2008, Modified: 11/3/2011