Last post Sep 07, 2018 06:04 AM by Brando ZWZ
Sep 06, 2018 09:56 AM|lx8584|LINK
I deploy a Restful Web API server as a ServiceFabric stateless service.
when web server receive the request from client, sometimes I come across the exception that System.Net.HttpListenerRequest has been disposed.
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.HttpListenerRequest'. at System.Net.HttpListenerRequest.CheckDisposed() at System.Net.HttpListenerRequest.get_LocalEndPoint() at System.Net.HttpListenerRequest.get_IsLocal()
at Microsoft.Owin.Host.HttpListener.RequestProcessing.OwinHttpListenerContext.GetServerIsLocal() at Microsoft.Owin.Host.HttpListener.RequestProcessing.CallEnvironment.get_ServerIsLocal()
Does anyone has some idea about this exception?
Why web server throw this kind of exception?
How to avoid this error?
Sep 07, 2018 06:04 AM|Brando ZWZ|LINK
According to your description, I suggest you could firstly check the ServiceFabric's status to make sure there are nothing wrong with its status.
Is this error happened when many requests send to the web api?
More details about how to check its status, you could refer to below article.