The code
telemetryClient = new TelemetryClient();
telemetryClient.trackSessionState(SessionState.Start);
telemetryClient.trackEvent("TestEvent");
telemetryClient.trackSessionState(SessionState.End);
results in two identical errors
Failed to send, Bad request : {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"Unknown domain type 'Microsoft.ApplicationInsights.SessionStateData'"}]}
The session is not tracked in the online portal but the custom event "TestEvent" shows up (thus the connection works in principle). How can I track session start and end?