Visual Studio 2019 build errors

I have API project (.NET Framework 4.6) that contains a lot of different controllers, nuget packages, swagger, EF etc.
If i load this project & make a build – everything succeeded (No issue found) and i can deploy my project to DevOps. However if i add atliest one line of code & make a build i get more that 6000 errors.
I already tried to clean & rebuild my project but this does not help.

Problem receiving form data in the controller. C# – MVC

Friends, I have 3 tables. Person, Student and Address. Person is a general table, has the fields of name, email, phone, etc. And I have an address table to save the student’s address. I’m having trouble bringing the information from the address fields dynamically and finalizing a new student registration.I appreciate if anyone can analyze.

cannot convert from ‘IEnumerable’ to ‘IEnumerable

[TestMethod] public async void Select_getallTask() { //Arrange IEnumerable<TaskToDo> list = new List<TaskToDo>(); var mockrepo = new Mock<ITaskToDoRepository>(); mockrepo.Setup(x => x.GetTasks()).Returns(list); //Act var data = mockrepo.Object.GetTasks(); //Assert Assert.AreEqual(data, list); } this gives me error on mockrepo.Setup(x => x.GetTasks()).Returns(list); Error: Severity Code Description Project File Line Suppression State Error CS1503 Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<ToDoApp.Models.TaskToDo>' to … Read more

Blazor Role based Authorization – No service for type ‘Microsoft.AspNetCore.Identity.RoleManager’

I’m using a free project from GitHub that uses Blazor with EF Identity and SQLite. Its a good starting point for me to learn and add more functionality. Currently, I would like to add authorization to the project to allow specific users to have access to particular pages. My first step is to add default roles and account. I managed to find some sample codes that do that during startup. However, I get the following runtime error.

How to do single page routing in dotnet 3

I have an application which is built using both client side routing using react and server side routing using MapRazorPages. I need to map tasks/* to a specific view and map everything to razor pages. I’m completely new to dotnet so I don’t really know what I’m doing but so far as I can tell I should be able to do something like this: