diff --git a/samples/ErrorPageSample/project.json b/samples/ErrorPageSample/project.json index 038226e213..9e3ae7064e 100644 --- a/samples/ErrorPageSample/project.json +++ b/samples/ErrorPageSample/project.json @@ -1,4 +1,5 @@ { + "webroot" : "wwwroot", "dependencies": { "Microsoft.AspNet.Diagnostics": "1.0.0-*", "Microsoft.AspNet.Server.WebListener": "1.0.0-*", diff --git a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs index 771ee06f4e..a84a8db150 100644 --- a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs +++ b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cs @@ -691,14 +691,14 @@ using Views #line default #line hidden - WriteLiteral(" \r\n }\r\n
\r\n"); -#line 197 "ErrorPage.cshtml" + WriteLiteral("
\r\n
\r\n"); +#line 196 "ErrorPage.cshtml" #line default #line hidden -#line 197 "ErrorPage.cshtml" +#line 196 "ErrorPage.cshtml" if (Model.Headers.Any()) { @@ -707,26 +707,26 @@ using Views WriteLiteral(" \r\n \r\n \r\n \r\n \r\n \r\n \r\n " + " \r\n"); -#line 207 "ErrorPage.cshtml" +#line 206 "ErrorPage.cshtml" #line default #line hidden -#line 207 "ErrorPage.cshtml" +#line 206 "ErrorPage.cshtml" foreach (var kv in Model.Headers.OrderBy(kv => kv.Key)) { foreach (var v in kv.Value) @@ -736,19 +736,19 @@ using Views #line hidden WriteLiteral(" \r\n \r\n \r\n \r\n"); -#line 215 "ErrorPage.cshtml" +#line 214 "ErrorPage.cshtml" } } @@ -756,7 +756,7 @@ using Views #line hidden WriteLiteral(" \r\n
"); -#line 202 "ErrorPage.cshtml" +#line 201 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_VariableColumn); #line default #line hidden WriteLiteral(""); -#line 203 "ErrorPage.cshtml" +#line 202 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_ValueColumn); #line default #line hidden WriteLiteral("
"); -#line 212 "ErrorPage.cshtml" +#line 211 "ErrorPage.cshtml" Write(kv.Key); #line default #line hidden WriteLiteral(""); -#line 213 "ErrorPage.cshtml" +#line 212 "ErrorPage.cshtml" Write(v); #line default #line hidden WriteLiteral("
\r\n"); -#line 219 "ErrorPage.cshtml" +#line 218 "ErrorPage.cshtml" } else { @@ -765,26 +765,26 @@ using Views #line hidden WriteLiteral("

"); -#line 222 "ErrorPage.cshtml" +#line 221 "ErrorPage.cshtml" Write(Resources.ErrorPageHtml_NoHeaderData); #line default #line hidden WriteLiteral("

\r\n"); -#line 223 "ErrorPage.cshtml" +#line 222 "ErrorPage.cshtml" } #line default #line hidden WriteLiteral("
\r\n \r\n"); -#line 226 "ErrorPage.cshtml" +#line 225 "ErrorPage.cshtml" #line default #line hidden -#line 226 "ErrorPage.cshtml" +#line 225 "ErrorPage.cshtml" /* TODO:
diff --git a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cshtml b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cshtml index 463b41da0d..4687489895 100644 --- a/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cshtml +++ b/src/Microsoft.AspNet.Diagnostics/Views/ErrorPage.cshtml @@ -192,7 +192,6 @@

@Resources.ErrorPageHtml_NoCookieData

}
- }
@if (Model.Headers.Any()) {