Error.cshtml 953 B

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