@using System @using System.Globalization @using System.Linq @using Views @functions { public ErrorPage(ErrorPageModel model) { Model = model; } public ErrorPageModel Model { get; set; } } @{ Response.StatusCode = 500; // TODO: Response.ReasonPhrase = "Internal Server Error"; Response.ContentType = "text/html"; Response.ContentLength = null; // Clear any prior Content-Length string location = string.Empty; }
@location in @System.IO.Path.GetFileName(firstFrame.File), line @firstFrame.Line
@location
} else {@Resources.ErrorPageHtml_UnknownLocation
} } } else {@System.IO.Path.GetFileName(frame.File)| @Resources.ErrorPageHtml_VariableColumn | @Resources.ErrorPageHtml_ValueColumn |
|---|---|
| @kv.Key | @v |
@Resources.ErrorPageHtml_NoQueryStringData
}| @Resources.ErrorPageHtml_VariableColumn | @Resources.ErrorPageHtml_ValueColumn |
|---|---|
| @kv.Key | @v |
@Resources.ErrorPageHtml_NoHeaderData
}| @Resources.ErrorPageHtml_VariableColumn | @Resources.ErrorPageHtml_ValueColumn |
|---|---|
| @kv.Key | @kv.Value |