diff --git a/Pages/Error.cshtml b/Pages/Error.cshtml deleted file mode 100644 index 6f92b95..0000000 --- a/Pages/Error.cshtml +++ /dev/null @@ -1,26 +0,0 @@ -@page -@model ErrorModel -@{ - ViewData["Title"] = "Error"; -} - -
- Request ID: @Model.RequestId
-
- Swapping to the Development environment displays detailed information about the error that occurred. -
-- The Development environment shouldn't be enabled for deployed applications. - It can result in displaying sensitive information from exceptions to end users. - For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development - and restarting the app. -
diff --git a/Pages/Error.cshtml.cs b/Pages/Error.cshtml.cs deleted file mode 100644 index 4f87bf2..0000000 --- a/Pages/Error.cshtml.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System.Diagnostics; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace csharp.Pages; - -[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] -[IgnoreAntiforgeryToken] -public class ErrorModel : PageModel -{ - public string? RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - private readonly ILogger¡Iniciá sesión para comenzar a crear definiciones!
-