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.
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
- 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.
- Click Start, click Run, type cmd, and then click OK
- Type the following command on one line to disable the 32-bit mode:
- 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:
- 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
- Download and install ASP.NET 2.0 SDKs (Software Developers Kit). It is available from http://www.asp.net/downloads/essential/
- 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.
To reverse this operation, perform the following command. Once again, replace <executable> with the path to the mailservice.exe file.
For more information on the CorFlags Conversion Tool visit the following page:
http://msdn2.microsoft.com/en-us/library/ms164699%28vs.80%29.aspx