diff --git a/src/Microsoft.AspNetCore.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs b/src/Microsoft.AspNetCore.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs
index 36dd78084d..029ff307e1 100644
--- a/src/Microsoft.AspNetCore.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs
+++ b/src/Microsoft.AspNetCore.Diagnostics/DeveloperExceptionPage/Views/ErrorPage.cs
@@ -214,7 +214,7 @@ WriteAttributeValue("", 1550, firstFrame.File, 1550, 16, false);
WriteLiteral(" ");
#line 56 "ErrorPage.cshtml"
-
+
var reflectionTypeLoadException = Model.ErrorDetails.Last()?.Error as ReflectionTypeLoadException;
if (reflectionTypeLoadException != null)
{
@@ -224,42 +224,36 @@ WriteAttributeValue("", 1550, firstFrame.File, 1550, 16, false);
#line default
#line hidden
- WriteLiteral("
LoaderExceptions:
\r\n");
-#line 63 "ErrorPage.cshtml"
- }
+ WriteLiteral(" Loader Exceptions:
\r\n \r\n");
+#line 64 "ErrorPage.cshtml"
+
#line default
#line hidden
- WriteLiteral(" \r\n");
-#line 65 "ErrorPage.cshtml"
-
+#line 64 "ErrorPage.cshtml"
+ foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
+ {
#line default
#line hidden
-#line 65 "ErrorPage.cshtml"
- foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
- {
-
-#line default
-#line hidden
-
- WriteLiteral(" - ");
-#line 67 "ErrorPage.cshtml"
- Write(ex.Message);
+ WriteLiteral("
- ");
+#line 66 "ErrorPage.cshtml"
+ Write(ex.Message);
#line default
#line hidden
WriteLiteral("
\r\n");
-#line 68 "ErrorPage.cshtml"
- }
+#line 67 "ErrorPage.cshtml"
+ }
#line default
#line hidden
- WriteLiteral("
\r\n");
-#line 70 "ErrorPage.cshtml"
+ WriteLiteral("
\r\n");
+#line 69 "ErrorPage.cshtml"
+ }
}
@@ -338,9 +332,9 @@ WriteAttributeValue("", 1550, firstFrame.File, 1550, 16, false);
#line hidden
WriteLiteral("