Error.cshtml 859 B

12345678910111213141516171819202122232425
  1. @model ErrorViewModel
  2. @{
  3. ViewData["Title"] = "Error";
  4. }
  5. <h1 class="text-danger">Error.</h1>
  6. <h2 class="text-danger">An error occurred while processing your request.</h2>
  7. @if (Model.ShowRequestId)
  8. {
  9. <p>
  10. <strong>Request ID:</strong> <code>@Model.RequestId</code>
  11. </p>
  12. }
  13. <h3>Development Mode</h3>
  14. <p>
  15. Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
  16. </p>
  17. <p>
  18. <strong>The Development environment shouldn't be enabled for deployed applications.</strong>
  19. It can result in displaying sensitive information from exceptions to end users.
  20. For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
  21. and restarting the app.
  22. </p>