Posts Tagged ‘64bit’

The ASP.Net Tab is Missing on 64-bit Windows

December 11th, 2008

Taken from http://www.iisadmin.co.uk/?p=15

Here’s another oddity which I stumbled upon recently whilst working on a 64-bit Windows 2003 machine so I thought I’d share it here.

I installed IIS on a newly installed 64-bit Windows 2003 R2 server and needed to configure it to support Asp.Net 1.1 applications. In order to do this I had to configure IIS to run in 32-bit mode as documented in this KB article How to switch between the 32-bit versions of ASP.NET 1.1 and the 64-bit version of ASP.NET 2.0 on a 64-bit version of Windows.

Once I had done this I went back into the Properties of the Default Web Site and I noticed that the ASP.Net tab seemed to have mysteriously vanished. After closing and re-opening and then checking the MMC a few times I still couldn’t find the ASP.Net tab. So I followed the same procedure on another 64-bit Windows 2003 server and got the same results – the Asp.Net tab disappeared after I configured the Enable32bitAppOnWin64 metabase property.

If you’ve got a 64-bit server you can test this out for yourself by following these steps.

Install IIS 6.0 on the server and then open the Properties of the Default Web Site. You should see the Asp.Net tab as shown here

Fig. 1

If you now run the following command at this point :

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs get W3SVC/AppPools/Enable32bitAppOnWin64

you should see that it returns a value of false as shown below, which shows that IIS is currently running in 64-bit mode.

Fig. 2

In order to configure IIS to run in 32-bit mode you need to execute this command :

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

You should now see that it returns a value of True as shown here. This means that IIS is now running in 32-bit mode on your server.

Fig. 3

If you then go back to look at the properties of the Default Web Site you will see that the ASP.Net tab has gone.

Fig. 4

I have to admit that this had me puzzled at first until I found a reference to this KB article – The “ASP.NET” tab of IIS Manager does not appear when you retrieve the properties for a virtual directory in IIS Manager

Apparently, this anomaly is due to the fact that the 32-bit version of IIS Manager is incompatible with 64-bit machines running Asp.Net

What this means in practical terms is that if you have a 64-bit server running IIS in 32-bit mode and you need to change the version of the .Net framework on a particular web site then you need to use the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) to make those changes.

SmarterMail on a 64 bit server with ASP.NET 2.0

December 11th, 2008
How To – SmarterMail on a 64 bit server with ASP.NET 2.0

Applies to: SmarterMail (all versions)

When the SmarterMail Service (mailservice.exe) is running in 64 bit mode, it is incompatible with IIS running in 32 bit mode. When running the webmail of SmarterMail under IIS a “Bad Data” exception may appear.

Bad Data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.

There are several options available to remedy this situation.

Option 1: Switch IIS to run in 64 bit mode

  1. Verify that the web site is running as an ASP.Net 2.0 web site by going to the properties for the site and clicking on the ASP.Net tab.
  2. Click Start, click Run, type cmd, and then click OK
  3. Type the following command on one line to disable the 32-bit mode:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
  1. Type the following command to install the version of ASP.NET 2.0 and to install the script maps at the IIS root and under:
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
  1. Make sure that the status of ASP.NET version 2.0.50727 is set to Allowed in the Web service extension list in Internet Information Services Manager.

Please note that performing these steps will result in IIS running in 64-bit mode.  If you have other ASP.Net sites running on the server, ensure that they are compatible with 64-bit mode and are not running ASP.Net 1.1 before making changes.

If you do have other ASP.NET 1.1 sites running, please view this KB Article for further options: http://support.smartertools.com/Customer/KBArticle.aspx?articleid=170

Option 2: Switching the SmarterMail service to run in 32 bit mode

  1. Download and install ASP.NET 2.0 SDKs (Software Developers Kit). It is available from http://www.asp.net/downloads/essential/
  2. Once the SDK has been installed, use the corflags.exe program to force the SmarterMail service to run in 32 bit mode. With the following command. Replace <executable> with the path to the mailservice.exe file.
corflags.exe <executable> /32BIT+

To reverse this operation, perform the following command. Once again, replace <executable> with the path to the mailservice.exe file.

corflags.exe <executable> /32BIT-

For more information on the CorFlags Conversion Tool visit the following page:
http://msdn2.microsoft.com/en-us/library/ms164699%28vs.80%29.aspx