Working With Ports
Does it make sense?
I added a Web Service Reference to a Windows Application. If I run it from the .exe file it works fine. But if I run it from the Development Environment it sends errors such as:
- The underlying connection was closed: An unexpected error occurred on a receive, Or
- The underlying connection was closed: An unexpected error occurred on a send, Or
- The underlying connection was closed: Unable to connect to remote server.
Someone helped me with the communications issue. He said that when I run it from the exe file, it connects to the port 80. But from the dev. env. it's trying to connect to the port 8080!
So I tried something like WebService.Url = "http://url:80", but it's still sending the same errors.
Any Idea will be greatly appreciated, thanks.
|