Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing 'Add Application Insights Telemetry to Project' option in VS 2013

I have an existing Web Project. I clicked "Add Application Insights Telemetry to Project" and at one point in the process it threw an error like '[...] failed to initialize the powershell host [...]'. Then I tried a few things according to Google searches. There is no ApplicationInsights.config in the project, nor is the Microsoft.ApplicationInsights.Telemetry.Services referenced.

Now there is no 'Add Application Insights Telemetry to Project' option to be found anywhere. I even tried to re-install the Application Insights extension.

I tried to roll back any changes via git, but without luck.

Non of my teammates see the 'Add Application Insights Telemetry to Project' option in VS. (We're all using Visual Studio Ultimate 2013 Update 4)

In case I can't get this to work, is there a way to manually set this up?

like image 556
Sam7 Avatar asked Apr 02 '15 00:04

Sam7


People also ask

How do I add Insights to an existing project?

Add Application Insights automatically From within your ASP.NET web app project in Visual Studio: Select Project > Add Application Insights Telemetry > Application Insights Sdk (local) > Next > Finish > Close.

How do I find app Insights in Visual Studio?

Run your web app in local debug mode by using F5. Open different pages to generate some telemetry. In Visual Studio, you see a count of the events that have been logged by the Application Insights module in your project. Click this button to search your telemetry.


1 Answers

Manually, you can add the nuget package yourself (the web one is: http://www.nuget.org/packages/Microsoft.ApplicationInsights.Web)

and then manually create an application insights resource on the Azure portal (http://portal.azure.com), and then take the instrumentation key for your new resource, and paste it into the ApplicationInsights.config file that the nuget package installed into your project.

The AI VSIX adds a GUI on top of those steps. (can help you fix whatever's wrong with the vsix i'd rather have you do that first, though!)

like image 140
John Gardner Avatar answered Sep 17 '22 13:09

John Gardner