Category "asp.net-core"

SoapCore Asp.net core 3.1 Header

Any idea how I can add a header for my calls using SoapCore? what I have so far: at startup.cs:app.UseSoapEndpoint<IMyService>("/MyService.svc", new Basic

Button Click to return to the same page with same input parameters

I want users to navigate back to the same page after the button is clicked on the page. If the user URL is https://localhost:xxx/Inventories/Index/38?custID=38&

Fluent Validation to check just ID property

I am using Fluent Validation in my project. I have one validator class. public class CarValidator : AbstractValidator<Car> { public CarValidator()

Why it occurs this error [The JSON value could not be converted to System.Nullable] when ASP.NET Core is upgraded from 2.1 to 3.1?

When upgrading an ASP.NET Core 2.1 application to 3.1, I encountered an error : The JSON value could not be converted to System.Nullable. What is going on and h

.Net Core Blazor How to pass multiple parameters?

Click the a TAB to pass multiple parameters. How to receive <a href="../navigatetopage?id="1"&key="img"></a> In the page you want to navigate

How to fix 500.30 - ASP.NET CORE app failed to start

Well after publishing the program on IIS, we have this error HTTP Error 500.30 - ASP.NET Core app failed to start Common solutions to this issue: The app failed

ASP.NET Core: [FromQuery] usage and URL format

I am trying to use [FromQuery] in my web api and I am not sure how to use it. Here's the GetAllBooks() method in the controller: [HttpGet] [Route("api/v1/Sh

Google App Engine Latency skyrockets out of nowhere

Our development team is scratching our heads wondering why Google App Engine latency tends to go through the roof from time to time with very little predictabil

Claims Stored in Cookies Exceed Max Request Header Length

I have an ASP.NET Core 2.0 website using the vanilla implementation for authentication/authorization using Identity and cookies (not using OpenID Connect). I ha

Best practice to handle concurrency in EF Core and ASP.NET Core?

Currently I'm doing the following when inserting/updating and entity: public async Task<IdentityResult> UpdateAsync(Model model, CancellationToken ct = de

Getting Unsupported Media Type for .net core

I'm new in backend development and Gettig 415 Unsupported Media Type in multipart API written in .net core. I have attached the postman image for your reference

CS0234:The type or namespace 'Internal' does not exist in the namespace 'Microsoft.AspnetCore.Http'. Are you missing an assembly reference?

I get this error while migrating from .netcore2.2 to 3.0 .I have replaced request.EnableRewind() with request.EnableBuffering and the code does not use Http.Int

''MS-ASPNETCORE-TOKEN' does not match the expected pairing token' when calling deployed .net core API on IIS

I am receiving the following exception in the logs and event viewer when calling an endpoint in a .Net core application (3.1): 'MS-ASPNETCORE-TOKEN' does not m

Custom middleware breaks Developer Exception Page

Custom middleware breaks Developer Exeption Page. Instead of page with exception details there is HTTP 500 response. Debugging line by line runs only until awai

How to customize ASP.NET Identity Core Username to allow special characters and space

I have changed my Register Action Method to accept user Name instead of Email. if (ModelState.IsValid) { var user = new ApplicationUser { User

The default Identity UI layout requires a partial view '_LoginPartial' error ASP.NET Core 6.0

So. I created a fresh new project with Visual Studio Pro 2019 (v16.11.9) using the model ASP.NET Core with Angular. I set the authentication option to Individua

How to read web.config file in .Net Core app

I have created a .Net Core API and I referenced a .Net framework application to it. The referenced Application connects to a data base and its connection string

Net Core MemoryCache not resetting per request

.Net Core 3.0. I have a repo where IMemoryCache gets injected. Repo is registered as Transient. I would like for the cache to be cleared/reset PER request, howe

How Serilog posts to CloudWatch without any configuration setup?

I am migrating an app done in net core from Azure to AWS. Backend is an Asp.NetCore WebApi which uses Serilog for logging. I simply put it behind a subclass of

ASP.NET Core (.Net 6) Web Application throws System.NotSupportedException when run as a service. (Service will not start)

When I attempt to run my .Net Web Application as a Windows Service, it does not start. It works if I just run the executable but mysteriously fails when attempt