The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Http500.cshtml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @model Teknik.IdentityServer.ViewModels.ErrorViewModel
  2. <script>
  3. var submitErrorReportURL = '@Url.RouteUrl("Error.Action", new { action = "SubmitErrorReport" })';
  4. </script>
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="error-template text-center">
  9. <h1>Whoops!</h1>
  10. <h2>500 Server Error</h2>
  11. <div class="error-details">
  12. <p>Sorry, a server error occured. Please contact an Administrator about this error.</p>
  13. <div class="error-actions">
  14. @if (Model != null && Model.Exception != null)
  15. {
  16. <div class="btn btn-primary btn-lg" id="submitErrorReport">
  17. <span class="fa fa-bug"></span>
  18. Submit Bug Report
  19. </div>
  20. }
  21. </div>
  22. @if (Model != null && Model.Exception != null)
  23. {
  24. <br />
  25. <div class="show-more" id="view-details">
  26. <button role="button" class="btn btn-default btn-sm view-details-button" data-toggle="collapse" data-target="#errorMsg">Show Details</button>
  27. </div>
  28. <div class="text-left collapse" id="errorMsg">
  29. <br />
  30. <p>
  31. <b>Exception:</b> @Model.Exception.GetFullMessage(true)
  32. <br/>
  33. <b>Source:</b> @Model.Exception.Source
  34. </p>
  35. <div style="overflow: scroll">
  36. <pre>@Model.Exception.StackTrace</pre>
  37. </div>
  38. </div>
  39. }
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <bundle src="error.min.js" append-version="true"></bundle>