Error.cshtml 850 B

12345678910111213141516171819202122
  1. @model ErrorViewModel
  2. @{
  3. ViewData["Title"] = "Error";
  4. }
  5. <h1 class="text-danger">Error111.</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>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.
  19. </p>