No connection could be made because the target machine actively refused it?

后端 未结 28 2597
北荒
北荒 2020-11-22 01:27

Sometimes I get the following error while I was doing HttpWebRequest to a WebService. I copied my code below too.


System.Net.WebException: Unable to connect         


        
28条回答
  •  滥情空心
    2020-11-22 01:39

    I had this issue happening often. I found SQL Server Agent service was not running. Once I started the service manually, it got fixed. Double check if the service is running or not:

    1. Run prompt, type services.msc and hit enter
    2. Find the service name - SQL Server Agent(Instance Name)

    If SQL Server Agent is not running, double-click the service to open properties window. Then click on Start button. Hope it will help someone.

提交回复
热议问题