//-------------------------------------------------------------------------------------------------//
        protected void Application_Start(object sender, EventArgs e)
        {
            const string STRLOG_MethodName = "Application_Start";

            //
            // Set the filepath for the log files
            //
            string rootFilePath = HostingEnvironment.ApplicationPhysicalPath;
            string logFilesPath = Utilities.GetAppSetting(Library.LabEquipment.Engine.Consts.STRCFG_LogFilesPath);
            Logfile.SetFilePath(Path.Combine(rootFilePath, logFilesPath));

            Logfile.Write("");
            Logfile.WriteCalled(STRLOG_ClassName, STRLOG_MethodName);

            //
            // Create experiment manager and start it
            //
            allowedCallers = new AllowedCallers();
            equipmentManager = new EquipmentManager(rootFilePath);
            equipmentManager.Create();
            equipmentManager.Start();

            Logfile.WriteCompleted(STRLOG_ClassName, STRLOG_MethodName);
        }
        //-------------------------------------------------------------------------------------------------//
        protected void Application_Start(object sender, EventArgs e)
        {
            const string STRLOG_MethodName = "Application_Start";

            //
            // Set the filepath for the log files and the logging level
            //
            string rootFilePath = HostingEnvironment.ApplicationPhysicalPath;
            string logFilesPath = Utilities.GetAppSetting(Library.LabEquipment.Engine.Consts.STRCFG_LogFilesPath);
            Logfile.SetFilePath(Path.Combine(rootFilePath, logFilesPath));

            //
            // Determine the logging level for this application
            //
            try
            {
                Logfile.LoggingLevels logLevel = (Logfile.LoggingLevels)Utilities.GetIntAppSetting(Library.LabEquipment.Engine.Consts.STRCFG_LoggingLevel);
                Logfile.SetLoggingLevel(logLevel);
            }
            catch
            {
                Logfile.SetLoggingLevel(Logfile.LoggingLevels.Minimum);
            }

            Logfile.Write(string.Empty);
            Logfile.WriteCalled(STRLOG_ClassName, STRLOG_MethodName);

            //
            // Create experiment manager and start it
            //
            allowedCallers = new AllowedCallers();
            equipmentManager = new EquipmentManager(rootFilePath);
            equipmentManager.Create();
            equipmentManager.Start();

            Logfile.WriteCompleted(STRLOG_ClassName, STRLOG_MethodName);
        }