I tried to use the Visual Studio Wizard to add Application Insights to my application. When I did it on my office computer it worked fine. But when I tried to do it at home, it failed with the following error message:
--------------------------- Microsoft Visual Studio --------------------------- Could not add Application Insights to project. Failed to install package: Microsoft.ApplicationInsights.Web with error: Unable to resolve dependencies. 'Microsoft.ApplicationInsights 2.5.0' is not compatible with 'Microsoft.ApplicationInsights.DependencyCollector 2.4.1 constraint: Microsoft.ApplicationInsights (= 2.4.0)', 'Microsoft.ApplicationInsights.PerfCounterCollector 2.4.1 constraint: Microsoft.ApplicationInsights (= 2.4.0)', 'Microsoft.ApplicationInsights.Web 2.4.1 constraint: Microsoft.ApplicationInsights (= 2.4.0)', 'Microsoft.ApplicationInsights.WindowsServer 2.4.1 constraint: Microsoft.ApplicationInsights (= 2.4.0)', 'Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel 2.4.0 constraint: Microsoft.ApplicationInsights (= 2.4.0)'.
It would seem that I have 2.5.0 installed in some parts, and 2.4 installed in other parts. But I don't know what would cause this... I just ran the wizard. I had not installed anything but Visual Studio (in relation to App Insights).
I did try installing the Application Insights Status Monitor afterward, but it did not affect the error.
Any idea on how to deal with this error would be appreciated...
Details:
- I am running a Web API project
- I am running on the full .net framework (version 4.5.2)