System.Net.WebException: Unable to connect to remote server No connection could be made because the target machine actively refused it

For me, this was an easy one, IIS was down.

Other ideas:
1) Check app.exe.config and make sure URL is corect
2) Make sure machine name is correct http://xxxxxxxx or http://localhost