Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I want to debug an empty WebApi Project based on .NET Core 2.2.

I installed the "Core 2.2 SDK x86" and changed the target framework to 2.2:

<Project Sdk="Microsoft.NET.Sdk.Web">   <PropertyGroup>     <TargetFramework>netcoreapp2.2</TargetFramework>   </PropertyGroup> 

When I started to debug this project, IIS starts, but in the route api/values I see nothing (it loads forever) and I get this error:

The target process exited without raising a CoreCLR started event.Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core

In my solution WPF and Class Library projects exist. I wanted to make a WebApi for it. Like I said, it's an empty base project generated by Visual Studio 2019. I just installed Core 2.2. Why do I get that error and what am I doing wrong?

like image 600
michasaucer Avatar asked Apr 19 '19 06:04

michasaucer


1 Answers

I had the same issue.
I ran Program.cs file from the command line and the error message was different.
So, apparently, I didn't have the appropriate .NET Core runtime installed.

You can download it by the following link - https://dotnet.microsoft.com/download

like image 193
Nazariy Perepichka Avatar answered Sep 18 '22 04:09

Nazariy Perepichka