Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Insight Not available, keeps showing app offline or SDK is old

We are using .NET CORE 3.0 web application. We haven't included any App Insight Nuget package for App Insight. But we have enabled the appinsight directly from Azure Portal. After doing this, I'm expecting the server request, failures and live metrics to display.

But I keep getting this error on live metrics even though app is running: Not available: your app is offline or using an older SDK enter image description here

We didn't have to include any appinsight nuget packags for 2.7 NET CORE version. Any idea why no metrics being displayed?

like image 809
Nil Pun Avatar asked Jan 29 '20 10:01

Nil Pun


People also ask

How do I enable applications Insights NET application?

Open your project in Visual Studio. Go to Project > Add Application Insights Telemetry. Choose Azure Application Insights, then select Next. Choose your subscription and Application Insights instance (or create a new instance with Create new), then select Next.

How do I check my application Insights error?

Open the Application Insights Search telemetry window in Visual Studio. While debugging, select the Application Insights dropdown box. Select an exception report to show its stack trace. To open the relevant code file, select a line reference in the stack trace.

How do I disable Insight app?

To remove Application Insights, you'll need to remove the NuGet packages and references from the API in your application. You can uninstall NuGet packages by using the Package Management Console or Manage NuGet Solution in Visual Studio.


1 Answers

As clearly stated in the docs you have to include some NuGet packages:

Get Started

  • If you haven't yet install Application Insights in your web app, do that now.

  • In addition to the standard Application Insights packages Microsoft.ApplicationInsights.PerfCounterCollector is required to enable Live Metrics stream.

  • Update to the latest version of the Application Insights package. In Visual Studio, right-click your project and choose Manage Nuget packages. Open the Updates tab, and select all the Microsoft.ApplicationInsights.* packages.

  • Redeploy your app.

  • In the Azure portal, open the Application Insights resource for your app, and then open Live Stream.

If you don't include those packages some telemetry is send to App Insights, but this telemetry won't be shown in the Live Metrics stream.

like image 152
Peter Bons Avatar answered Sep 18 '22 12:09

Peter Bons