Category "asp.net-core"

Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware: Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, request rejected

I am receiving this error, Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware: Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, req

EntityFrameworkCore Performance tuning when filter one dbcontext object using the other dbcontext object

I asked something similar recently and it got solved by using AsQueryable: How to save time when pulling data from DB using Entity Framework Core in controller

Render CSV example for swashbuckle

I have an API that can return an csv or json, deppending on the Accept header mimetype. I've decorated the method with [Produces("application/json","text/csv")]

Building Offline capabilites in ASP.NET Core web application

We are building a project management web application using those main technologies:- ASP.NET Core MVC SQL Server + Entity Framework HTML, CSS & Bootstrap Th

Minimal API Registering Dependencies

I am trying to register dependencies but one thing that is strange is when using specific handlers. For example, take a simple scenario like: using Microsoft.As

I'm getting CORS error with CORS configured on ASP.NET Core Web API app

I have an ASP.NET Core Web API hosted in Azure. When I'm trying to make a fetch request from my web app hosted on Vercell, I'm getting this error: Access to fe

ASP.NET Core Razor Read related data into table

I am trying to create a asp.net core 2.1 razor website that will load two tables on the one page. Below i have defined my classes ItemMasters and DealMasters. I

How do I configure OData to use a POST with /$query on an endpoint configured with ODataAttributeRouting? I'm getting a 404

This is a follow-up to OData AspNetCore support for long URLs useing $query is not working. OData 8.0.4 In startup, I have app.UseODataQueryRequest() My Control

Visual Studio 2019 - Docker 4.1.1 - Web App Stops Working After Adding Container Orchestration

This is sort of strange. As soon as I add docker orchestration in Visual Studio 2019 my Web Application stops working. These are the exact steps that I am takin

how to Check Client connection status in Blazor web assembly

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

Why is await HttpContext.SignInAsync("MyCookieAuth", claimsPrincipal); throwing No sign-in authentication handlers are registered? (Razor Page model)

I'm trying to do a simple user authentication with the following code public async Task<IActionResult> OnPostAsync() { if (!ModelState

Token doesn't get refreshed when sending request with Ajax

I'm using IdentityServer4 as a centralized auth server. I have a mvc app that acts as a client and works as expected unless I open a modal. When the user presse

.Net Core 'asp-append-version' interfering with CSP nonces in Umbraco 9

I have a very simple TagHelper which will add the current CSP nonce to a specified tag. This is all working fine until I start using asp-append-version along wi

How to get and Bind() data from dynamic view in asp.net

I wrote Create() method to create a Test and I input that data- 1)choose from dropdownlist ,for which Course I want to add this Test 2)name 3)description I have

Blob Storage - handle files directly on it

I desire an efficient solution to iterate through large files located on blob storage in C#. I want to use the blob storage as a local storage. In my research I

ASP.Net Core Email Breaks Suddenly Citing SSL Time Mismatch

After noticing that nobody has signed up for a site of mine for a week I tried signing up myself only to be greeted with an error message. Then I tried signing

Where to place the resource root id in the url?

I have resources linked like this: A->B->C->D I want to design a REST API to retrieve the D elements inside of A Which is the best design approach? api

API responds locally (vs 2019) but not in local docker container

I am new to Docker and going through documentation and Pluralsight videos. I have a really simple API I am practising/learning to run as a docker container. Eve

ModelState.IsValid= False when upload image(bootstrap/Net core MVC)

I'm trying to upload an image, this is the view: @model CrearAmigoModelo @{ ViewBag.Title = "Nuevo amigo"; } <form asp-controller="Home" asp-action="Cr

Create dynamic entity from nested classes to bind Devexpress net core Data Grid

I have a data transfer object like this : public class PerformanceCostDto { public int Id { get; set; } public long WorkId { get; set; } public stri