Thursday 25 June 2009

Copying over configuration to a 64Bit IIS Server

When copying over configuration settings for IIS when moving you web sites to a new server, You can run into problems when copying over the configuration to a 64bit machine from a 32 bit machine. This can occur after using the iiscnfg.vbs script. You will receive a Service Unavailable error when navigating to your web site.

also in the event log you will get the following error:

ISAPI Filter ‘C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll’ could not be loaded due to a configuration problem. The current configuration only supports loading images built for a AMD64 processor architecture. The data field contains the error number. To learn more about this issue, including how to troubleshooting this kind of processor architecture mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349.

To resolve this issue:

1) Disable the 32 bit mode for your web server
cscript C:\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

2) Register ASP.NET 2.0 as the default framework for the server
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i

3) Restart IIS
c:\iisreset

for more information on exporting configuration to a new server or moving your web sites to a new server click here

No comments: