I have a domain that has multiple sites underneath it. In my Startup.cs I have the following code public void ConfigureServices(IServiceCollection services) {
I have a domain that has multiple sites underneath it. In my Startup.cs I have the following code public void ConfigureServices(IServiceCollection services) {
.Net Core 3.0 MVC view. Needs to apply - Client Side validation for below model. Tried as follow: Model:Person public class Person { public int Id {
Is it possible to do some validation using attributes on simple parameters, like: [HttpGet("test/{type}")] public ActionResult GetSomeData([Range(0,2)]byte typ
I create a brand new ASP.NET Core MVC project using VS 2022 and .NET Core 6. VS will generate the base template and when I run it without touching any code, eve
I'm using Asp.Net Core Web Api 6 I'm facing an error when migrating my DbContext and when updating the database The Error [17:07:29 INF] Application Is Starting
I create a brand new ASP.NET Core MVC project using VS 2022 and .NET Core 6. VS will generate the base template and when I run it without touching any code, eve
I'm developing a test Project using asp.net core. For Connecting to database I'm using Entity framework. I add appsetings.json file to the project and change th
I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste
I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste
I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste
We have an ASP.NET Web API project that gets data from Java service that lives in Web Sphere and is exposed as a WCF service. After conversion to .NET 6.0, the
In ASP.NET Core 5 I had a custom Action Result as follows: public class ErrorResult : ActionResult { private readonly IList<Error> _errors; public E
I have a razor page configuration that returns a a partial view with an entire table in it: <div class="col-12 border text-left p-3 mt-3 d-flex"> <
I have a simple web api project, which looks like this: [Authorize] [Route("Get")] public ActionResult<string> SayHello() {
I have a .Net Core app where i use the .AddMediatR extension to register the assembly for my commands and handlers following a CQRS approach. In ConfigureServi
Anyone has this problem i change Pc and tried to install net core framework but vs code return this info when i tried to write dontet --info Failed to load th
I just migrated .NET Core 2.0 to .NET Core 2.1. Everything went fine, but when I try to login now I get the folowing error: $exception {System.ObjectDispos
I need to upgrade a reference Microsoft.AspNetCore.Http.dll 3.0 When I try to upgrade Microsoft.AspNetCore.Http 3.0 using Nuget and it is showing as installati
I updated yesterday from .Net 5 to .Net 6 and now my projects can't start with dotnet run. I then get the error: Building... warn: Microsoft.AspNetCore.Server.K