I have added application insights to my asp.net 4.6 web application.
This also added the file Service References\Application Insights\ConnectedService.json
The contents of this file:
{
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
"Version": "7.1.719.1",
"GettingStartedDocument": {
"Uri": "https://go.microsoft.com/fwlink/?LinkID=613413"
}
}
What is this file for? It does not seem to provide any logic to my application and does not seem to be required for anything to work.
The connectedservice. json file is generated by the tool to support the service update functionality, it is not meant for configuring the web service client.
The project. json file used by NuGet is a subset of that found in ASP.NET Core projects. In ASP.NET Core project. json is used for project metadata, compilation information, and dependencies.
How to disable Application Insights from Azure App Services. If you are using an Azure App Service, you will also want to remove the site extension for Application Insights. To remove it, go to Extensions and then click on the Application Insights extension. You can then click delete to remove Application Insights.
This file is simply a marker to the Visual Studio "Connected Services" tooling that Application Insights (or any other connected service) was installed, what version of that service installed it, and where to go for getting started documents. The file is not compiled into your app, is not set to content included in the project or anything else, it is only there for Connected Services to know what things you've installed.
This info shows up in solution explorer in a folder called "Service References", and you'll see all of the connected services you have added that way. You can double click the node there to re-open the documentation.
To see what other services are available, you can right click the project, go to add->connected service and see more items there.
For more information, you can see this channel 9 video: https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/Connected-Services
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With