Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Windows service getting stopped abruptly

$
0
0

Hi,

I have a windows service application which pings server continuously every 10 secs and downloads files from the server.

Recently, I have faced an issue where suddenly service is getting stopped and I cannot see anything in my log. My code has proper exception management and there is very less chance a error is not caught.  

Is there any other way to find out whats wrong and the rootcause for this behaviour.

I have figured out that this is the exception that I'm getting in Event viewer.

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.WebException
Stack:
   at System.Net.ServicePointManager.FindServicePoint(System.Uri, System.Net.IWebProxy, System.Net.ProxyChain ByRef, System.Net.HttpAbortDelegate ByRef, Int32 ByRef)
   at System.Net.HttpWebRequest.FindServicePoint(Boolean)
   at System.Net.HttpWebRequest.get_ServicePoint()
   at System.Net.AuthenticationState.PrepareState(System.Net.HttpWebRequest)
   at System.Net.AuthenticationState.ClearSession(System.Net.HttpWebRequest)
   at System.Net.HttpWebRequest.ClearAuthenticatedConnectionResources()
   at System.Net.HttpWebRequest.Abort(System.Exception, Int32)
   at System.Net.HttpWebRequest.AbortWrapper(System.Object)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Event Xml:

Thanks in advance.


Navyatha



Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>