asp.net-core-3.1 Questions

2

I am using ASP.Net Core 3.1 Web API. I have a need to perform an additional activity in the background, when I get a call to a controller action method, without adding too much delay in the process...

2

Solved

I'm trying to inject a couple email accounts that I have in appsettings.json into an email service. EDIT: My EmailRepository.cs needs a DbContextinjected as well. I used @Nkosi 's answer, which wo...
Consultant asked 1/4, 2020 at 19:49

2

I'm trying to upload multiple files in my .NET Core v3.1 Blazor application, but I can't get passed the 30MB limit. Searching for this I found Increase upload file size in Asp.Net core and tried th...

3

Solved

Using the enum: namespace AppGlobals { [JsonConverter(typeof(JsonStringEnumConverter))] public enum BoardSymbols { [EnumMember(Value = "X")] First = 'X', [EnumMember(Value = "O")] Second = ...
Virescence asked 31/1, 2020 at 6:11

4

Solved

I have added AddOpenIdConnect to the ConfigureServices method of my ASP.NET Core 3.1 Razor application. It works great until the token expires, then I get 401 responses from my IDP. I have seen an...

1

I have dotnet core 3.1 web api application where I am using Visual Studio 2019 docker and docker-compose tooling feature to run the application. When I am trying to run the application I am getting...
Flatworm asked 14/8, 2021 at 15:57

4

After migrating my project from .NET Core 2.1 to .NET Core 3.1, everything works fine but when publishing the project, Iget this error: System.Runtime.CompilerServices.Unsafe doesn't support netco...
Hadst asked 21/11, 2021 at 9:18

3

Solved

I've made bundle.js and bundle.css to use in my web app, My package.json looks like this: "dependencies": { "bootstrap": "^4.5.3", "jquery": "^3.5.1&...
Rockbottom asked 18/12, 2020 at 15:40

2

Solved

So I have a very simple aws-lambda-tools-defaults.json in my project: { "profile": "default", "region": "us-east-2", "configuration": "Rele...

2

Solved

I am using nuget Microsoft.Extensions.Configuration.AzureKeyVault and I am using below code for asp.net core 3.1 in Program.cs, I am doing custom certificate authentication for azure keyVault. Also...
Tall asked 23/1, 2021 at 10:33

3

Using Newtonsoft we had a custom resolver for ignoring empty collections. Is there any equivalent configuration for the new system.text.json in .Net core 3.1
Univalent asked 13/1, 2020 at 16:37

4

Solved

I've just upgraded my ASP.NET Core WebApi project from .NET Core 2.2 to 3.1. I've fixed up all of the compile-time errors, upgraded my Nuget packages, and I can now run the app. However, When I c...
Rye asked 23/12, 2019 at 23:41

5

Solved

I am migrating to .NET 5.0 from .Net Core 3.1. I keep getting this error message: Package Microsoft.AspNetCore.Authentication.JwtBearer 5.0.0 is not compatible with netcoreapp3.1 (.NETCoreApp,Vers...
Mureil asked 1/12, 2020 at 19:52

3

Solved

I a have a very simple app with one JWT authenticated controller: [ApiController] [Authorize] [Route("[controller]")] public class JwtController : ControllerBase { public JwtController() { } [...
Webbing asked 13/5, 2020 at 8:14

2

Solved

I'm trying to setup a worker service using the asp.net core 3.1 template provided by VS 2019 Enterprise. So far: 1 / Created a new project and ran it: "Hosting Environment: Development", works as ...
Herewith asked 18/3, 2020 at 14:43

2

I have this in my dotnet core 3.1 webapp tasks.json: "env": { "ASPNETCORE_ENVIRONMENT": "Development", "ASPNETCORE_URLS": "http://localhost:5000&quot...
Albuminate asked 23/9, 2020 at 15:52

2

gRPC requests in .NET rely on channels, that must be shut down and disposed: using var channel = Grpc.Net.Client.GrpcChannel.ForAddress("path to service"); //...do stuff... await channe...
Pretension asked 24/6, 2021 at 15:13

2

I'm trying to run my application written in asp.net core 3.1 on docker. I need to create database using migrations. While executing dotnet ef database update; command I get: Could not execute beca...

2

Solved

Is there a good way to get the ServiceProvider in the AddOpenIdConnect, or configure the ClientSecret later where we have the DI container fully setup? (e.g. in Configure(IApplicationBuilder app)) ...

3

I am trying to write a parameterized query that has IN clause. For Ex : Working code Input string : "'guid1','guid2','guid3'" public List<Employee> GetEmployeeIds(string ids){ Query...

3

Solved

I am learning DDD and JWT so I thought about using both in my application. The problem starts like this. When I do a resquest with username and password, the api returns the token, but when I put i...
Almeda asked 21/3, 2020 at 3:32

2

Solved

I'm learning the Blazor technology. I started a default increment project in VS 2019 and I have modified the code for Decrement with confirm() and alert but it does not work. @page "/counter&...
Minimum asked 20/3, 2020 at 11:26

7

Solved

I have created an mvc site and I'm posting a large amount of json form data (Content-Type:application/x-www-form-urlencoded) back to the mvc controller. When I do this, I receive a 500 response tha...
Intercellular asked 13/7, 2016 at 16:28

3

Solved

I'm writing an API in ASP.NET Core 3.1, using EF Core to access a SQL Server database. I have a function in the API that needs to call a stored procedure with several input parameters and an output...

1

Solved

I have already tried all the solutions here, and nothing is working. I am using package IdentityModel.AspNetCore.OAuth2Introspection v6.0.0. The business use case I have is that I have to return a ...

© 2022 - 2024 — McMap. All rights reserved.