- Request ID: @Model.RequestId
-
- Swapping to Development environment will display more detailed information about the error that occurred. -
-- Development environment should not be enabled in deployed applications, 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 ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. -
diff --git a/Kyoo/Pages/Error.cshtml.cs b/Kyoo/Pages/Error.cshtml.cs deleted file mode 100644 index a75a4b79..00000000 --- a/Kyoo/Pages/Error.cshtml.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Mvc.RazorPages; - -namespace Kyoo.Pages -{ - [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] - public class ErrorModel : PageModel - { - public string RequestId { get; set; } - - public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); - - public void OnGet() - { - RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; - } - } -} diff --git a/Kyoo/Pages/_ViewImports.cshtml b/Kyoo/Pages/_ViewImports.cshtml deleted file mode 100644 index 6207fd4a..00000000 --- a/Kyoo/Pages/_ViewImports.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@using Kyoo -@namespace Kyoo.Pages -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers