Host ASP.NET 4.0 in IIS 6 on Windows 2003 x64

64-bitapplication-poolsasp.netwindows-server-2003-r2

I want to host an ASP.NET 4.0 web application in IIS 6 on Windows 2003 R2 SP2 x64.

Is this even possible? I have the following under C:\WINDOWS\microsoft.net\Framework

  • 1.0.3705
  • 1.1.4322
  • 2.0.50727
  • 3.0
  • 3.5
  • 4.0.30319

and in C:\WINDOWS\microsoft.net\Framework64 the same except 1.0 and 1.1.

IIS 6 runs in 32 bit mode but there is no ASP.NET tab in the properties screen of the website. So I can't switch frameworks and don't know what frameworks runs in what application pool.

EDIT have tried what GregD suggested. That gave me back the tab in IIS so that I could set the proper framework for the website, but it gave me the following in the eventlog when I tried to start the application pool:

Could not load all ISAPI filters for site/service. Therefore startup aborted.

After a quick googling, I found this: http://nishantrana.wordpress.com/2008/09/09/service-unavailable-could-not-load-all-isapi-filters-for-siteservice-therefore-startup-aborted/

Which kind of puts me in a circle. Enabling and removing the 64 bit setting in the metabase.xml file.

Because aspnet_regiis -i told me that it couldn't work because IIS was in a 64-bit setting.

Best Answer

You can do it.

On your web service extensions folder (in IIS Manager) are your asp.net extensions enabled for the different versions?

Edited to add: To get your tab back try this:

1) Stop the IIS Admin service (and any services that depend on it)

2) Open C:\WINDOWS\system32\inetsrv\MetaBase.xml in notepad or your favorite XML Editor. DELETE the line that reads ‘Enable32BitAppOnWin64=”TRUE”’

3) Restart IIS