In Visual Studio 2013 open Tools, Extensions and Updates,
Select Installed
on the left and look for Application Insight Tools for Visual Studio
and check its version. If it is version 2, uninstall it. This one sends the telemetry data to Azure instead of VS Online (portal that you mentioned above).
Now select Online
and search for Application Insight Tools for Visual Studio
, you will see 1.3.2 version. Install it, restart the Visual Studio and Add Application Insights Telemetry to the project...
, it will show you VS Online account that it will use and the Application Insight component under which data will be captured. Run the app and after few minutes data will appear in the VS Online portal.
You can add Application Insight in Visual Studio 2012 as well. However, it is a manual process and involves below steps:
- Create Application Insight application in VS Online portal
- Add Nuget package to the project in VS
- Finally, add few lines of code in
Global.asax.cs