Error.cshtml 849 B

123456789101112131415161718192021222324
  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 <strong>Development</strong> environment will display more detailed information about the error that occurred.
  17. </p>
  18. <p>
  19. <strong>Development environment should not be enabled in deployed applications</strong>, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>, and restarting the application.
  20. </p>