Monday, July 31, 2023

Application Insight For An Existing ASP.NET Web Application


This article will guide you to add Application Insight on Azure for an existing ASP.NET Web Application. If you are starting a new project or have an existing Web Application and want to use Application Insights, Visual Studio 2013 and later now has a built-in capability to add Application Insights to your Application.

Step 1


Open “MyWebsite” ASP.NET Web Application in Visual studio 2013.

Note

This is an existing ASP.NET Web Application, which you already have and you want to add “Application Insights” to capture telemetry data.

Step 2 

Add Microsoft.ApplicationInsights.Web package from nuget package manager

https://www.nuget.org/packages/Microsoft.ApplicationInsights.Web

This package is required .Net framework 4.6.1 or greater version 

it will add following dependency in project and add applicationinsight.config in root path 


Open Web.config file and check the modules added to the configuration.





 Add InstrumentationKey key at the top in  ApplicationInsight.config 



Kafka setup in window

Here's a step-by-step guide on how to do it : 1. Prerequisites : Before you begin, make sure you have the following prerequisites inst...