Unable to log into webmail or web administration


SYMPTOMS

When trying to log into webmail it fails, and web admin will produce an error message dialog. Other services appear to work. When the Windows event log is checked, an ASP.NET error is shown, which have the details including:

Event code: 3005
Event message: An unhandled exception has occurred.

Exception information:
Exception type: BadImageFormatException
Exception message: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at MailEnable.Administration.Login.LoginGet(IAUTHENTRYTYPE& lpLogin)

CAUSE

This is caused by the web application not being able to find the 64bit DLLs. So it is using the 32bit DLLs, but they cannot be used and the error occurs. The 64bit DLLs are found by the path existing in the PATH environment. The Mail Enable\bin64 directory contains the 64bit DLLs.

RESOLUTION

Edit the PATH environment variable on the server and ensure that the Mail Enable\bin64 as well as the Mail Enable\bin is included. If you edit the PATH environment variable you need to reboot the server for it to take effect.

 

 



Product:MailEnable
Article:ME020713
Module:General
Keywords:webmail,iis,login,BadImageFormatException,
Class:TRB: Troubleshooting (Configuration or Environment)
Revised:Friday, August 7, 2020
Author:
Publisher:MailEnable