Error.cshtml 856 B

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