Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

REST API app can have all requests filtered out #175

Closed

Description

Reported by the customer:

What I notice when running locally, the request fails it contains the response code but when its successful then it doesn’t I am not sure why?

This is RESTApi Project created using Visual Studio template for Azure Cloud Service -> WebRole -> Empty (Web API Check box) targeting .NET 4.5.2. Project just contain REST Endpoints there is no MVC used. Application Insights configured using Visual Studio (right click on the project and select add AI).

Removing filters from the collection helped to resolve the issue:

<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web">
  <Handlers>
<!-- 
        Add entries here to filter out additional handlers: 

        NOTE: handler configuration will be lost upon NuGet upgrade.

     Remove handlers below:
-->
     <Add>System.Web.Handlers.TransferRequestHandler</Add>
     <Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add>
     <Add>System.Web.StaticFileHandler</Add>
     <Add>System.Web.Handlers.AssemblyResourceLoader</Add>
     <Add>System.Web.Optimization.BundleHandler</Add>
     <Add>System.Web.Script.Services.ScriptHandlerFactory</Add>
     <Add>System.Web.Handlers.TraceHandler</Add>
     <Add>System.Web.Services.Discovery.DiscoveryRequestHandler</Add>
     <Add>System.Web.HttpDebugHandler</Add>
    </Handlers>
</Add>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions