5

I have a Web.Api project, and I deployed it to Azure Web Sites. Some times I see many HTTP SERVER ERRORS in dashboard.

Detailed Error Information: Module ManagedPipelineHandler Notification ExecuteRequestHandler Handler System.Web.Http.WebHost.HttpControllerHandler Error Code 0x800703e3 Requested URL http://test-server:80/api/Statistics/ShowStories Physical Path D:\home\site\wwwroot\api\Statistics\ShowStories Logon Method Anonymous Logon User Anonymous

I don't know how to fix it and why it happens.

UPDATE

I found what this happens because user breaks the internet connections, and my question in next: how to catch this problems, maybe create some custom exception handler, and logger this problems, what this 'http server errors' and not show to Azure dashboard?

Taras Kovalenko
  • 2,323
  • 3
  • 24
  • 49
  • Did you try enabling [ASP.NET Tracing](https://msdn.microsoft.com/en-us/library/0x5wc973(v=vs.100).aspx) to see if any helpful details are logged? – Siva Gopal Oct 27 '15 at 17:01

1 Answers1

1

See this question: ASP.NET Web API OperationCanceledException when browser cancels the request

I think that if you handle OperationCanceledException correctly, the error will not be logged.

Community
  • 1
  • 1
Alon Catz
  • 2,417
  • 1
  • 19
  • 23
  • I'm handling `OperationCanceledException` in a quite robust way, and I still see these errors once in a while. So I have a feeling that this is not the correct answer. – Zero3 Nov 16 '17 at 08:30