Application Tracking Failed. ASP.NET MVC Web API Requests

I have an ASP.NET Web API that provides a saveAndNew operation.

This class comes from System.Web.Http.ApiController as expected.

Application statistics are correctly configured using the 2.1.0 SDK and default settings in ApplicationInsights.config.

If the request for the specified operation does not work - for example, with a status code of 400 - then the request is recorded correctly in App Insights.

The problem is , if there is no SUCCEEDS operation recorded in Application Insights (status code 200) .

I used Fiddler to see if a request was sent to the App Insights Tracking Service and it wasn't. So the issue is not with the Application Insights configuration in the Azure portal.

I cannot figure out what is stopping ALL requests from performing operations on the web API controllers.

Can anyone please help?

+3


source to share


1 answer


You might want to try / comment TransferRequestHandler

on the ApplicationInsights.config file.

GitHub issue "REST API application can filter all requests" here claims to: "comments one line in ApplicationInsights.config triggered successful requests to start registration. Web API Project 2.



<!--<Add>System.Web.Handlers.TransferRequestHandler</Add>-->

      

+5


source







All Articles