This is happening very randomly and very sporadically. The only thing that we can find is that IIS HttpErr is giving a Request_Cancelled error.
We are using ASP.Net Web API and nothing is writing to the error logs and no methods are getting any exceptions.
The client connects to our web api using a post call. Is there any way to capture or at least get in more detail this "Request_Cancelled" error?
I read something about a TraceListener but I cannot get this to work. NOthing writes to the log file on IIS.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// etc.
config.EnableSystemDiagnosticsTracing();
// etc.
}
}
<configuration>
<system.diagnostics>
<trace autoflush="false" indentsize="4">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="E:\CompressedLogs\Service1-WebApi-TraceOutput.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration>