- Clicking "Properties" of the Web Services project, click the "Web" tab. Change the entry under "Use Visual Studio Development Server" from "Auto-assign Port" to "Specific port".
- Clicking "Set Startup Projects" of the solution, change the entry from "Current selection" to "Multiple startup projects." Change the Action from "None" to "Start."
- Make sure your client project is set up as the Startup Project.
- If you haven't already, add the Web Reference in your client project, choosing "Web Services in this solution."
- Make sure that your dependencies are set so that your client project is dependent upon your Web Services project.
This could eliminate your getting the "System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it" exception in the Reference.cs file.