Bloom.Api.ServerBase.GetServerStartFailureMessage C# (CSharp) Method

GetServerStartFailureMessage() private static method

private static GetServerStartFailureMessage ( ) : string
return string
        private static string GetServerStartFailureMessage()
        {
            var zoneAlarm = false;
            if(SIL.PlatformUtilities.Platform.IsWindows)
            {
                zoneAlarm =
                    Directory.Exists(Path.Combine(Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFilesX86),
                        "CheckPoint/ZoneAlarm")) ||
                    Directory.Exists(Path.Combine(Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles),
                        "CheckPoint/ZoneAlarm"));

                if(!zoneAlarm)
                {
                    try
                    {
                        zoneAlarm =
                            Process.GetProcesses().Any(p => p.Modules.Cast<ProcessModule>().Any(m => m.ModuleName.Contains("ZoneAlarm")));
                    }
                    catch(Exception error)
                    {
                        Logger.WriteError("GetServerStartFailureMessage() was unable to check for a running ZoneAlarm Process (BL-4055, Bl-4032, etc.)", error);
                    }
                }
            }
            if(zoneAlarm)
            {
                return LocalizationManager.GetString("Errors.ZoneAlarm",
                    "Bloom cannot start properly, and this symptom has been observed on machines with ZoneAlarm installed. Note: disabling ZoneAlarm does not help. Nor does restarting with it turned off. Something about the installation of ZoneAlarm causes the problem, and so far only uninstalling ZoneAlarm has been shown to fix the problem.");
            }

            return LocalizationManager.GetString("Errors.CannotConnectToBloomServer",
                "Bloom was unable to start its own HTTP listener that it uses to talk to its embedded Firefox browser. If this happens even if you just restarted your computer, then ask someone to investigate if you have an aggressive firewall product installed, which may need to be uninstalled before you can use Bloom.");
        }