2
votes

I'm tracking metrics from WPF application. I have updated Application Insights DLLs from 0.17 to 1.1. This meant removing Old DLLs and adding the SDK via Nuget. Now i don't see my metrics/events in the portal. I see no activity in the debugger output window. Activating DeveloperMode don't seem to do anything.

TelemetryConfiguration.Active.TelemetryChannel.DeveloperMode = true;

I can see that the AI DLLs are placed correctly in the output folder, and I get no error messages when sending events. But no data seems to come through any more.

I have tried to check traffic with fiddler. But no data seems to be sent. I have already tried to do what is suggested here:

https://azure.microsoft.com/en-us/documentation/articles/app-insights-troubleshoot-faq/#how-do-i-upgrade-from-older-sdk-versions

Any suggestions to what could be the problem?

Solution: Make sure the ApplicationInsights.config properties is set to

"Always copy"

or

"Copy if newer"

Bonus: How to configure 1.1

https://azure.microsoft.com/en-us/documentation/articles/app-insights-configuration-with-applicationinsights-config/

1

1 Answers

0
votes

In the newer 1.1 SDK setting up should be simpler. You can simply new up a telemetryClient to send. You shouldn't need any additional config file or additional code.

tc = new TelemetryClient();
tc.InstrumentationKey = "GET YOUR KEY FROM THE PORTAL";
tc.TrackEvent("SampleEvent");

Some additional details about getting setup for a WPF app can be found here.