asp.net mvc - Application Insights not showing data for Server Response Time, Server Requests or Failed Requests -
i have added application insights application.
after time, correctly seeing browser page load times, none of other graphs showing data @ all.
i see this:

when expecting along lines of this:

these 2 asp.net mvc 5 applications in same solution, , both deployed azure.
in both cases:
- i have correct javascript fragment in razor layout (and have verified via page source when viewing website both getting output, , request sent
dc.services.visualstudio.com/v2/track); - i have
applicationinsights.configin web root; - i setting correct instrumentation key during application startup, in
application_start()method ofglobal.asax.csway oftelemetryconfiguration.active.instrumentationkey = "the_key"
please note not have instrumentation key in applicationinsights.config file deploying website multiple times, , setting instrumentation key in accordance this advice.
i've reset (following add application insights sdk monitor asp.net app) still, after @ least 1/2 hour, not seeing server response time, server requests or failed requests.
how fix this?
following offline alex bulankou, i've resolved issue.
it difficult pinpoint precise combination caused issue, suspect due mismatched versions of application insights assemblies, malformed applicationinsights.config file , getting screwed between adding application insights via visual studio command , doing manually.
the ultimate path resolution to:
- remove
microsoft.applicationinsights.*nuget packages project; - delete existing
applicationinsights.configfile; - re-add
microsoft.applicationinsights.webnuget package only - install required dependencies, including freshapplicationinsights.configfile (that doesn't haveikey, wanted - see below) - my existing code set
instrumentationkeyviaglobal.asax.csremained unchanged
end result (i fixed @ 7am):

Comments
Post a Comment