Category "asp.net-core"

Web Api Return File with additional data

I'm returning a file as follows: public async Task<IActionResult> GetFile(string id) { try { Get

Blazor wait for ef core to finish request

So right now I get a Error: System.InvalidOperationException: A second operation was started on this context before a previous operation completed. Because bla

Image.FromStream throws Parameter is not valid error only on linux

I have some Unit Tests made in .net core that checks if the file which is uploaded from angular frontend is actually resized on the backend. I have a service th

Cannot create database migration on EF Core but It can when you ask to EnsureCreate database

I am trying to inject some repository to a service and some services to a controller but I am using the DbContext is an assembly that is not the startup projec

Cannot create database migration on EF Core but It can when you ask to EnsureCreate database

I am trying to inject some repository to a service and some services to a controller but I am using the DbContext is an assembly that is not the startup projec

How can I log messages from an ASP.NET Core application to a specific file on Linux?

I installed an ASP.NET Core application as a Linux daemon. By default .NET writes logs into /var/log/message but I would like the application to write its logs

oData Patch Delta parameter doesn't list any changed fields?

I'm using Abp Boilerplate ASP.Net Core and Angular. I've implemented odata as per the odata AspNetCore Integration document and it works fine retrieving data. I

Unable to resolve service for type 'Microsoft.EntityFrameworkCore.Storage.TypeMappingSourceDependencies'

When I'm trying Add-Migration, following error was occurred. I'm using, <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <

oData Patch Delta parameter doesn't list any changed fields?

I'm using Abp Boilerplate ASP.Net Core and Angular. I've implemented odata as per the odata AspNetCore Integration document and it works fine retrieving data. I

Access IHost across application classes globally

Below is an example code for CreateHostBuilder. Asp.net core host takes care of resolving dependency through constructor and middleware. If we want to resolve

ASP.NET Core 5 MVC localization query string working but routing not working

In trying to localize my application, the query string localization has worked and accept language header also working, but routing is not working. Here is my c

A possible object cycle was detected which is not supported

I know there are question and answers with that particular problem here on so, but my problem is little unique (I guess). Here is my model class: public class

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