Skip to main content

Questions tagged [asp.net-core-3.0]

Use this tag for questions specifically related to ASP.NET Core 3.0, in addition to using the 'ASP.NET Core' tag.

asp.net-core-3.0
214 questions with no upvoted or accepted answers
7 votes
0 answers
7k views

ASP.NET Core 3.0 - Cannot access a disposed object. Object name: 'IServiceProvider'

We have windows service that hosts web api and does some calculation job in background. From time to time we get exception: 2019-12-27 11:49:15.525 +01:00 [Error] [Serilog.Log.Write] Unhandled ...
Yaroslav Ryabyi's user avatar
7 votes
0 answers
1k views

Disable System.Text.Json on Web API on .NET Core 3.0

I would like explicitly use legacy Newtonsoft.Json library for serialization/deserialization on .NET Core Web API 3.0.0. No mater what I do, always System.Text.Json is involved and custom Newtonsoft's ...
Rok's user avatar
  • 591
6 votes
1 answer
2k views

.NET Core 3.0 Web Api Dictionary Key CamelCase Issue

I have a .NET Core Web Api which I recently migrated from version 2.2 to version 3.0. I have a route/method in one of my controllers that returns a Dictionary. The issue I am now having is that when ...
BryMan's user avatar
  • 525
6 votes
0 answers
332 views

ASP.NET Core 3.0 Web API with minimal footprint

I want to create an ASP.NET Core 3.0 Web API with a minimal footprint in terms of published size and RAM consumption. CPU consumption doesn't seem to be that much of a problem, and the number of calls ...
NicolasR's user avatar
  • 2,302
5 votes
1 answer
3k views

.NET Core 3.0: ASPNETCORE_ENVIRONMENT has value Development on publish

I tried to migrate my ASP.NET Core 2.2 project to the newly released ASP.NET Core 3.0 over the weekend. Everything looked good in the local environment, but after publishing and deploying to IIS, I ...
Satyajit's user avatar
  • 2,200
5 votes
1 answer
2k views

Return html as string from rendered/processed Razor Page in Class Library in Core 3

I have a solution with a few projects, where one of them is an Azure Function App, which calls a method in a .Net Core Class Library that is responsible for generating HTML that I can use with the ...
MatthiasA's user avatar
  • 506
4 votes
1 answer
4k views

How can I resolve a registered Dependency from an Autofac Container in .NET Core 3.1

There's a project I'm trying to upgrade to .NET Core 3.1 from 2.2. My major issue is at the startup.cs where I'm registering dependencies with Autofac. I have studied the documentation for registering ...
Kacey Ezerioha's user avatar
4 votes
1 answer
2k views

Alternative code for services.BuildServiceProvider (in ConfigureServices) when migrating from ASP.NET Core 2.2 to 3.1

I have modular ASP.NET Core application. Back in the day of .NET Core 1.1 I build services (AddScoped, AddSingleton ...) in public void ConfigureServices(IServiceCollection services) method like this: ...
Makla's user avatar
  • 10.2k
4 votes
4 answers
7k views

Exception while executing Azure function v2 with aspnetcore3 - The system cannot find the file specified. System.Private.CoreLib

I am using .net Core 3 with Azure function version 2 (Visual studio 2019 with .net framework 4.8). While executing the function below exception occours : System.Private.CoreLib: Exception while ...
Shailendra's user avatar
4 votes
0 answers
946 views

How to customize URL of webpage in Asp.NET Core Identity UI 3.0.0

I am using .NET Core 3.0.100, Blazor Server web-app, has these packages of Identity <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0" /> <...
Vy Do's user avatar
  • 50.8k
3 votes
0 answers
1k views

Why I can't reach HandleAuthenticateAsync in my custom JwtBearerHandler without producing an exception?

I'm trying to implement a custom JWTBearerHandler for authorizing some requests in my API, due to I need to inject a custom token validator I've made. So, I did implement AuthenticationHandler based ...
Rigoberto Ramirez Cruz's user avatar
3 votes
0 answers
3k views

Oauth2 with Postman and IdentityServer4

I'm trying to register authenticate with Postman on my Identity Server 4. It worked with .Net Code 2 but I recently updated to .Net Core 3 and did adaptations. I can open my login page, I can login ...
Bastien Vandamme's user avatar
3 votes
0 answers
919 views

Is there an alternative to StringEnumConverter in .Net Core 3?

In .net core prior to version 3 there when Newtonsof.Json was used there was a possibility to inherit from StringEnumConverter to add additional validation or a custom error message for the process of ...
Ilya Chernomordik's user avatar
3 votes
1 answer
2k views

Application Insights Telemetry Missing in .Net Core 3 app Running in Docker Container

We have a small API hosted in AKS which was written using .Net core 2.2. It has been working fine and we have seen all our App Insights telemetry in the Azure portal, both in Live Metrics and Log ...
Steve Pettifer's user avatar
3 votes
1 answer
1k views

Is that possible to publish ASP.Net Core 3.1 web application as a Single File

I know that we are able to publish .Net Core 3.x console applications as a self-contained, singlefile. But is it possible to publish web application as a single file? I tried to use <...
Mohammad Taherian's user avatar

15 30 50 per page
1
2 3 4 5
15