asp.net-core-6.0 Questions
2
I am currently upgrading a web API that was developed on NET Core 5.0 and upgrading it to NET Core 6.0. When upgrading the NuGet AutoMapper package to version 11.0.1, I find that the FindTypeMapFor...
Exile asked 7/3, 2022 at 1:58
2
Solved
I have been working on a project that uses .NET 6.0 and SQL and have been running into a status: 400 title: "One or more validation errors occurred." error whenever I try to make a POST r...
Hydrogenate asked 14/7, 2022 at 12:5
1
Solved
The ControllerBase class has this very handy Problem method that automatically generates RFC7807 error responses. We just have to specify the title and the status code and the Problem method will f...
Thurlough asked 7/4, 2023 at 19:32
0
I have a .Net Core 6 Project which I am trying to setup integration tests for using TestContainers.
I am using a Dockerfile generated by Visual Studio and this builds my image and I am able to run ...
Morin asked 30/3, 2023 at 14:25
2
Solved
I use a MediatR library in my Asp .Net core 6 app. And I have a the same logic for a group of requests, so I want to use the same handler for all of them. The problem is not new, but the solutions ...
Shaquitashara asked 18/9, 2022 at 7:27
3
Solved
I'm working on minimal api, what I'm trying is when the user visits /download it immediately downloads my picture named add.png.
But no matter what I try it doesn't work because I either get an emp...
Pinite asked 4/1, 2022 at 13:27
2
Solved
I just finished creating an ASP.NET Core app with Angular as described in this tutorial.
When creating the ASP.NET Core project, I checked the option to enable Windows Authentication. As long as I ...
Grandiose asked 12/4, 2022 at 12:2
2
I have a time-triggered function app developed in .Net core 6.0,
When I am using local.setting.Json to store configuration data. I am able to fetch the data using
System.Environment.GetEnvironmentV...
Bobettebobina asked 10/5, 2022 at 12:23
4
I'm running into a relatively new issue on .NET Core 6 where when publishing with Web Deploy via Visual Studio 2022. I'm receiving the following error:
Error Found multiple publish output files wi...
Consider asked 22/11, 2021 at 14:2
1
Solved
So I have an 'Echo' service that is just created so I can get a deeper understanding of Web Applications and Web APIs. It had a bunch of routes and in every situation it will just return a JSON res...
Teri asked 24/11, 2022 at 18:3
2
Solved
I working on an ASP.NET Core 2.2 web application. I have some issues when upgrade my application to .NET 6.
My issue is that there's no startup class in .NET 6.0 and I found program.cs file only.
I...
Meadows asked 20/11, 2022 at 8:52
1
after migration from .net core 2.1 to .net core 6.0, the build time became slow,takes about 1:30 (1 minute and 30 seconds) . by using MSBuild Log Viewer (https://msbuildlog.com/) the result was tha...
Catabolite asked 23/6, 2022 at 13:50
4
Solved
I'm trying to create ASP.NET Core 6 with Angular template I'm using VS 2022 and.net 6 and the npm is the latest release and Node js as well.
I've followed the normal project steps:
1- create a proj...
Cero asked 17/1, 2022 at 18:39
1
I am trying to add enums as parameters for my Swagger endpoint but they are being displayed as integers:
On the old .NET there was an option for Swagger option.DescribeAllEnumsAsStrings(); but I d...
Diggins asked 26/9, 2022 at 14:23
2
I am rendering components using DynamicComponent and I need to call a function found in the child component.
I cannot find the equivalent of using @ref for DynamicComponent so that I can call a fun...
Inviolable asked 25/5, 2021 at 19:32
2
I just want to know, How to save log details in specific file using .NET 6. Here I have created a new ASP.NET Core 6 Web API project using Visual Studio 2022. Previously I used StartUp.cs class to ...
National asked 16/7, 2022 at 12:55
1
Solved
I need to implement the HSTS header security in the ASP.Net Core 6.0 WEB API application.
Below is my Program.cs
var builder = WebApplication.CreateBuilder(args);
...
// Https redirection
build...
Photochronograph asked 16/8, 2022 at 14:56
3
Solved
I am using ASP.NET core 6 and i created my application with the react option ( so i have a ClientApp in my folder).
When i run the application, i will see my react UI and unable to see the swagger ...
Codon asked 3/6, 2022 at 19:32
2
Solved
I'm building an ASP.NET Core 6.0 web API. The API has endpoints that take in multipart/form-data requests and save the sections into files. If the internet connection gets cut during the handling o...
Ochlophobia asked 29/3, 2022 at 8:9
1
Solved
I'm using FluentValidation in an ASP.NET Core 6 Web API project. This works fine for most cases, so:
Request body JSON syntax validation is done by ASP.NET Core.
Request object property validation...
Comity asked 6/7, 2022 at 12:26
1
Solved
I tried to create Order object in my project. It keeps returning to the create page and didn't create the object. For the object itself has one to many relationship with Pembersih object (where Pem...
Goncourt asked 20/6, 2022 at 14:14
3
Solved
I have a Razor Class Library that I've been using for months with .NetCore3 then .NetCore 5 without a problem.
After recently updating our blazor server application and our Razor Class Library to ....
Ingenuity asked 25/11, 2021 at 14:22
2
Solved
I Net Core 5 I used to configure Serilog using the recommended approach:
public static void Main(string[] args) {
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
try {...
Shikoku asked 27/11, 2021 at 16:3
2
Solved
I'm following the example for queued services on MSDN but I don't know how to get an instance for MonitorLoop, because host.Services.GetRequiredService is undefined. How can I retrieve it in ASP.NE...
Lack asked 15/11, 2021 at 22:33
2
I have created a Worker Service using C# / .Net Core 6 (Visual Studio 2022).
It writes to a log file as expected if run via Visual Studio or started directly from Windows Explorer / PowerShell. How...
Irremissible asked 18/3, 2022 at 13:16
© 2022 - 2024 — McMap. All rights reserved.