I'm building a .Net Core Web API and in one of the files the FirstOrDefaultAsync() method just doesn't work although I'm using it in various files in the same p
A client is currently sending our ASP.NET 4.x/Core REST APIs the correct request payload but invalid request Content-Type which is resulting in 415 status codes
I just implemented a Try catch in my code, the error is because I have to return something in the catch, I can't understand is "what should I return?" 'Company
I writed code $scope.updatepricingimport = function(file) { debugger if(file == null || file == undefined || file == "") {
I'm working with a project which combines angular app on a client-side and .net core 6 web API app on the server-side. To provide real-time communication betwee
I am currently in the process of building a .NET Web API which is gonna be consumed in another project for a dashboard. Currently, first endpoint return total n
I have a simple ASP.Net Web API method that returns a BadRequest like this .. catch (Exception ex) { Log.Error($"CreateRequest:requ
I have C# api code as below. It work correct when i run on visual studio and deploy to iis server. I consume this api by javascript or Angualar on production Fr
So I'm adding JWT authentication for a webapi. Everything works fine until I messed around with the scheme settings. Somehow the following settings dont work an
I try to connect the ASP.NET Web API (not .NET Core) with identity server. I use owin as startup but I get a cors error. Why does cors app.UseCors(Microsoft.Owi
I created an owin middleware for asp.net framework. I want to mark some endpoints (methods of controller) to skip them from middleware processing. For asp core
I have this validator using Fluent Validation in ASP.NET Core-6 Web API : public TransactionValidator() { RuleFor(p => p.Token) .Cascade(CascadeM
I've been implementing IdentityServer4 to provide authorization for my React application. I have this working in my local dev environment, but am running into i
I'm trying to set strictly file size limit using filter, in the mean while, there is already a default global setting at Startup.cs Startup.cs int sizeLimit = 2
I have a Blazor webasemmbly app, it's using asp.net core as backend and Blazor wasm as frontend. I have a class that can check the HTTP issues like notfound, Ba
I´m trying to modify attributes using sql database and web api .Net 6 In a controller i have this method private void SetRefreshToken(RefreshToken newRefr
I have an existing Web API project, which uses Azure AD for authentication. Prior to my joining the organisation, I understand that this was an ASP.Net 3.1 proj
I have an API using ASP.NET Core 6 & EF6 and I reverse engineered my database (SQL Server) using the EF Core Powers Tool extension. When I try to insert a P
Ive been doing some research about how to consume a web api executed on my localhost throught a xamarin app. The web api works perfect, I can adding and getting
In my ASP.NET Core-6 Web API, I installed this NuGet package: <PackageReference Include="microsoft.aspnetcore.mvc.versioning.apiexplorer" Version="5.0.0" /&g