Answer
PROBLEM
When opening the GFI MailEssentials Switchboard, the following error is displayed:'Failed to load settings correctly. Application will now exit.'
This may also coincide with not being able to access the GFI MailEssentials Configuration due to:
No connection could be made because the target machine actively refused it 192.140.5.15:8013
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.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.140.5.15:8013
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.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.140.5.15:8013
ENVIRONMENT
- GFI MailEssentials
- All support environments
SOLUTION
Firstly, ensure there are no port conflicts between MailEssentials and another program:- Open a command prompt (cmd.exe) and type netstat -abn > c:\gfiports.txt
- Open gfiports.txt in a text editor and search for 8021, 8013 and 8015
- Confirm which service is using this port. If anything other than a GFI MailEssentials service is running on the port, then it confirms that there is a port conflict between the GFI MailEssentials application and a third party application
- Browse to %SystemRoot%\system32\drivers\etc\ and make a backup of the 'hosts' file
- Open this file in a text editor.
- The Hosts file will usually contain the following:
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
192.140.5.15 gfitest-exc01
192.140.5.15 gfitest-exc01.gfi.local
192.140.5.15 localhost
#127.0.0.1 localhost
#::1 localhost
- Change the first localhost entry to 127.0.0.1, so it looks like:
192.140.5.15 gfitest-exc01
192.140.5.15 gfitest-exc01.gfi.local
127.0.0.1 localhost
- Save the changes to the Host file
- Open Command Prompt and perform an IISRESET
- The Switchboard and Configuration should now be accessible
CAUSE
The localhost entry was not pointing to the correct address.