Questions tagged [.net-core-2.2]

Use this tag for questions specifically related to .NET Core 2.2, in addition to using the [.net-core] tag.

See the tag .net-core for more information or What's new in .NET Core 2.2?.

.NET Core 2.2 is supported until December 23, 2019.

212 questions
44
votes
21 answers

The target process exited without raising CoreCLR started event error with .NET Core 2.2

I want to debug empty WebApi Project based on .NET Core 2.2. I installed Core 2.2 SDK x86 and changed target framework to 2.2: netcoreapp2.2
38
votes
5 answers

Populate IConfiguration for unit tests

.NET Core configuration allows so many options to add values (environment variables, json files, command line args). I just can't figure out and find an answer how to populate it via code. I am writing unit tests for extension methods to…
monty
  • 5,629
  • 11
  • 44
  • 74
26
votes
1 answer

.Net Core warning No XML encryptor configured

When I start my service (API on .Net Core 2.2 in Docker container) I've got a warning: No XML encryptor configured. Key {daa53741-8295-4c9b-ae9c-e69b003f16fa} may be persisted to storage in unencrypted form. I didn't configure DataProtection.…
Igor Cova
  • 2,074
  • 2
  • 20
  • 48
13
votes
2 answers

Select correct Angular Environment based on .Net Core build

I created an .Net Core Web Api with an Angular ClientApp with the templates from Visual Studio. When building the project also builds the contained Angular App with the params set in the .csproj section e.g.
pjominet
  • 650
  • 7
  • 18
12
votes
3 answers

.NET Core SSL - template shows in browser only PR_CONNECT_RESET_ERROR (Firefox)

I only created a .NET Core web application from the VS 2017 template dialog with "Configure for HTTPS" on. I used dotnet dev-certs https --trust and confirmed the prompt. I checked with the MMC that the localhost certificate exists in…
monty
  • 5,629
  • 11
  • 44
  • 74
11
votes
1 answer

.Net standard version for .Net core 2.2

Googled a bit but couldn't find the .Net standard version for .Net core 2.2. Only version I got is, Any hint please?
9
votes
6 answers

The framework 'Microsoft.AspNetCore.App', version '3.1.3' was not found

After upgrading targetFramework for my web app from dotnet-core-2.2 to dotnet-core-3.1.2 on another developer machine we are getting following error It was not possible to find any compatible framework version The framework…
Prakash
  • 418
  • 1
  • 4
  • 14
9
votes
1 answer

Integration testing .NET Code 2.2 IHostBuilder (Generic Host Builder)

I am using .NET Core 2.2 IHostBuilder (Generic Host Builder) to build a console app running message streaming app as a BackgroundService (IHostedService). …
Dude0001
  • 2,064
  • 2
  • 17
  • 30
9
votes
1 answer

How to perform Health check in a docker console app

I have a .net 2.2 core console app that is running permanently as a HostedService in a docker container. It is not using ASPNet.Core and it's not an API, it's a pure .net-core application. When started, it performs a number of healthchecks and when…
Nick
  • 2,745
  • 1
  • 27
  • 53
9
votes
1 answer

How to Create Framework-Dependent Executables with .NET Core 2.2

How do I create framework-dependent executables (FDE) with .NET Core 2.2? The MSDN documentation mentions them here as a new feature for .NET Core 2.2: Framework-dependent executables (FDE) Starting with .NET Core 2.2, you can deploy your app as…
Voo
  • 26,852
  • 9
  • 70
  • 145
8
votes
2 answers

.NET Core / Kestrel Application is shutting down without reason

An existing setup where .net core (2.2) apis are hosted under IIS 7.5 ran smooth and nice so far. Suddenly I experienced that the logs hold the message Application is shutting down... without any indicators of errors or other reasons. I started…
monty
  • 5,629
  • 11
  • 44
  • 74
6
votes
2 answers

Entity Framework: Run EF Migrations for Previous Version in Net Core

I have Net Core 3.1.1000 installed. Now we are trying to run ef migrations with EF Core 2.2.6 database previous Solution, when running the following, receive error below. dotnet ef migrations add InitialCreate The application to execute does not…
user12425844
5
votes
2 answers

Error Could not load type System.Data.OleDb.OleDbConnection from assembly System.Data when using Scaffold-DbContext, EntityFrameworkCore.Jet, .NetCore

I am trying to use Scaffold-DbContext from Entity Framework Core to create Models from an existing MS Access Database. In Package Manager Console when I run the command: Scaffold-DbContext "Provider=Microsoft.ACE.OLEDB.12.0;Data…
5
votes
1 answer

.NET Core 2.2, Azure Web API new X509Certificate2 "The system cannot find the file specified" and "access denied"

My Azure Web API loads a certificate stored as a secret in Key Vault and then attempts to create a new certificate from a byte array. Running locally everything works, but, when deployed to Azure we get Access Denied or The system cannot find the…
user2503078
  • 305
  • 2
  • 14
4
votes
1 answer

Failed to get hosted service instance (Manually start hosted service .net core 3.1)

I had api project and test project in .net core 2.2. Now I have migrated both project in .net core 3.1 In test project I have "Initialize" method where I am adding services manually public void Initalize(){ var services = new…
1
2 3
14 15