public static void ErrorHandler(Exception Ex, string ModuleName, System.Web.HttpServerUtility Server) { if (Ex == null) { return; } string Msg = "Error Log: " + ModuleName + ": " + Ex.Message; try { Msg += " : " + Ex.Source + " : " + Ex.TargetSite.Name; } catch { } string FilePath = Server.MapPath(Layer01_Constants_Web.CnsLogPath); Do_Methods.LogWrite(Msg, FilePath); }