From your Screenshots it is clear that you are using Console Application
and App.config
.
As mentioned in the MSDoc, for a Console application to Log traces to Application Insights, you need to Install Microsoft.ApplicationInsights.WorkerService
NuGet Package.
OR
The project has an App.Config, it does not have Appsettings.json or ApplicationInsights.config
- You can use either
App.config
or ApplicationInsights.config
file to add Instrumentation Key.
If you don't want to add manually, you can add from the Connected Services (ApplicationInsights.config
will be generated, you can use this to add Instrumentation Key)


Packages related to Application Insights will be added.
You can check the same in .csproj
or in Assemblies.

Add the Instrumentation Key before </ApplicationInsights>
in the ApplicationInsights.config
file.

<InstrumentationKey>**********</InstrumentationKey>
Update
The above configuration of Application Insights is for the .NET Console Application.
In your previous question you mentioned that
On top, it has an added an ASP.NET Core Configure Services Startup.cs
.
Thanks @PanagiotisKanavos for the comments.
As mentioned by Panagiotis, Migrating from Framework Application to Core requires lot of changes or configurations to be done.
The Packages which you have added for Application Insights are for Core Application.
If you want to configure application Insights in .NET Core, then you need to have appsettings.json
file.