简体   繁体   中英

Add Application Insights Telemetry fails

I'm trying to add Application Insights to my WebApi app (.net 4.6.2) project. I go to the menu Project > Add Application Insights Telemetry ... > Pick my AppInsights resource in Azure then it thinks for a long time and fails.

在此处输入图片说明

在此处输入图片说明

What are the steps that are failing here and how can I get around this?

  • While Adding Application Insights automatically we need to add instrumentation key to ApplicationInsights.config before closing the </ApplicationInsights> tag file.
     <InstrumentationKey>"your-instrumentation-key-goes-here"</InstrumentationKey>
  • Then update each Microsoft.ApplicationInsights NuGet package to the latest stable release by navigating to Project > Manage NuGet Packages > Updates .

If Adding Application Insights Automatically isn't working, then you can try manually from HERE .

REFERENCES: Configure monitoring for ASP.NET with Azure Application Insights - Azure Monitor | Microsoft Docs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM