28 | First Name 29 | | 30 |{{ row.firstName }} | 31 |35 | Last Name 36 | | 37 |{{ row.lastName }} | 38 |42 | Age 43 | | 44 |{{ row.age }} | 45 |49 | Gender 50 | | 51 |{{ row.gender }} | 52 |56 | Email Address 57 | | 58 |{{ row.emailAddress }} | 59 |63 | Phone Number 64 | | 65 |{{ row.phoneNumber }} | 66 |70 | City 71 | | 72 |{{ row.city }} | 73 |77 | State 78 | | 79 |{{ row.state }} | 80 |84 | Zip 85 | | 86 |{{ row.zip }} | 87 |91 | Country 92 | | 93 |{{ row.country }} | 94 |97 | | 98 | 101 | | 102 |106 | | 107 | 110 | | 111 |
---|
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /UserManagement.API/Pages/Error.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Threading.Tasks; 6 | using Microsoft.AspNetCore.Mvc; 7 | using Microsoft.AspNetCore.Mvc.RazorPages; 8 | using Microsoft.Extensions.Logging; 9 | 10 | namespace UserManagement.API.Pages 11 | { 12 | [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] 13 | public class ErrorModel : PageModel 14 | { 15 | private readonly ILogger