Question, I have a windows service running a task every one minute, It's connecting to a server and runs some kind of job on that server,but today i got an error from the server "WebException: The operation has timed out", the admin was changing some parameters so I got that error and my windows service couldn't connect any more on server, so when I restarted my service it connected momentarily.My question is it nececary to restart win service every time if that kind of error happens, I tout that win service would connect automatically without any kind of interaction from my side, or I have to write some kind of code to do that?
问问题
923 次