1. remove the extra catch block used like a catch block from the code below catch(Exception ex) { log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format ["+format+"]", ex); return StringFormatError(ex, format, args); } catch { log4net.Util.LogLog.Warn("StringFormat: Exception while rendering format ["+format+"]"); return StringFormatError(null, format, args); }
2. Change in config.cs System.Web.HttpContext.GetConfig(string) to System.Web.HttpContext.GetSection (string) 3. in Progressbar.cs , Progresspage.cs Add Type cstype = this.GetType(); and Change Page.RegisterClientScriptBlock("NeatUploadProgressBar", clientScript); to Page.ClientScript.RegisterClientScriptBlock(cstype,"NeatUploadProgressBar", clientScript); 5. in log4Net\Layout\XMLLayout.cs change writer.WriteAttributeString(ATTR_TIMESTAMP, XmlConvert.ToString(loggingEvent.TimeStamp)); to writer.WriteAttributeString(ATTR_TIMESTAMP, XmlConvert.ToString(loggingEvent.TimeStamp, XmlDateTimeSerializationMode.Local)); 6. Use System.Net.Mail; instead of System.Web.Mail; -- View this message in context: http://www.nabble.com/what-will-the-inlisted-changes-in-log4net-code-affect-tf4157640.html#a11828745 Sent from the Log4net - Users mailing list archive at Nabble.com.