diff --git a/samples/ErrorPageSample/Startup.cs b/samples/ErrorPageSample/Startup.cs index 05b901b30d..e845ce8bcd 100644 --- a/samples/ErrorPageSample/Startup.cs +++ b/samples/ErrorPageSample/Startup.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.AspNet.Builder; namespace ErrorPageSample @@ -10,8 +10,12 @@ namespace ErrorPageSample app.UseErrorPage(); app.Run(context => { - throw new Exception("Demonstration exception"); + throw new Exception(string.Concat( + "Demonstration exception. The list:", "\r\n", + "New Line 1", "\n", + "New Line 2", Environment.NewLine, + "New Line 3")); }); } } -} +} \ No newline at end of file diff --git a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs index 3dcfb1eb99..a2826d6d32 100644 --- a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs +++ b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs @@ -19,6 +19,12 @@ using System.Linq #line hidden ; #line 4 "ErrorPage.cshtml" +using System.Net + +#line default +#line hidden + ; +#line 5 "ErrorPage.cshtml" using Views #line default @@ -28,7 +34,7 @@ using Views public class ErrorPage : Microsoft.AspNet.Diagnostics.Views.BaseView { -#line 6 "ErrorPage.cshtml" +#line 7 "ErrorPage.cshtml" public ErrorPage(ErrorPageModel model) { @@ -47,7 +53,7 @@ using Views #pragma warning disable 1998 public override async Task ExecuteAsync() { -#line 14 "ErrorPage.cshtml" +#line 15 "ErrorPage.cshtml" Response.StatusCode = 500; // TODO: Response.ReasonPhrase = "Internal Server Error"; @@ -59,30 +65,30 @@ using Views #line hidden WriteLiteral("\r\n\r\n(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, 506), false)); + WriteAttribute("lang", Tuple.Create(" lang=\"", 518), Tuple.Create("\"", 579), + Tuple.Create(Tuple.Create("", 525), Tuple.Create(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName, 525), false)); WriteLiteral(" xmlns=\"http://www.w3.org/1999/xhtml\">\r\n \r\n \r\n "); -#line 25 "ErrorPage.cshtml" +#line 26 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_Title); #line default #line hidden - WriteLiteral("\r\n