internal ParseErrorFormatter(HttpParseException e, string virtualPath, string sourceCode, int line, string message) : base(virtualPath, null, sourceCode, line)
 {
     this._adaptiveMiscContent = new StringCollection();
     this._excep   = e;
     this._message = HttpUtility.FormatPlainTextAsHtml(message);
     this._adaptiveMiscContent.Add(this._message);
 }
Example #2
0
 internal ConfigErrorFormatter(ConfigurationException e) : base(null, e.Filename, null, e.Line)
 {
     this._adaptiveMiscContent = new StringCollection();
     this._e = e;
     PerfCounters.IncrementCounter(AppPerfCounter.ERRORS_PRE_PROCESSING);
     PerfCounters.IncrementCounter(AppPerfCounter.ERRORS_TOTAL);
     this._message = HttpUtility.FormatPlainTextAsHtml(e.BareMessage);
     this._adaptiveMiscContent.Add(this._message);
 }