I want to show Components in a tabs , so first of all create few components. In this project we have three components, First View Component public class AllViewComponent : ViewComponent { private readonly UserManager<ApplicationUser> _userManager; public AllViewComponent(UserManager<ApplicationUser> userManager) { _userManager = userManager; } public async Task<IViewComponentResult> InvokeAsync() { List<StudentViewModel> allUsers = new List<StudentViewModel>(); var items = await _userManager.Users.ToListAsync(); foreach (var item in items) { allUsers.Add(new StudentViewModel {Id=item.Id, EnrollmentNo = item.EnrollmentNo, FatherName = item.FatherName, Name = item.Name, Age = item.Age, Birthdate = item.Birthdate, Address = item.Address, Gender = item.Gender, Email = item.Email }); }
Application is currently offline error occurs in the browser. Offen, when we work with the SQL-Sserver then that's types of problem occurs. When, today i was develop a new project with the help of SQl. i face this error during demonstration. I want to say that when we retrieve data from database table through Sql DataSource control. I was run my application in browser, error becomes in the browser. Actually its not a error, you can say its a exception, which is detect by the browser. I think, this is overloading exception, after some time buffer is full so dotnet framework create a page for this types of exception.
Exception snapshot
How to fix it
- Remove the app offline page (HTML page) from the project folder
- Empty your Recycle Bin
Comments
Post a Comment