we were in the technical problem since since last couple of the days. we googled it a lot , however after all we have done it today :). special thanks to Jigar Pandit for the same.
Web service call is working fine in our local system. however when we installed middle-tier service (which contains dll of web-service call) on remote server. it started giving “The underlying connection was closed: Unable to connect to the remote server.” Error.
This problem may occur when one or more of the following conditions are true:
|•||A network outage occurs.|
|•||A proxy server blocks the HTTP request.|
|•||A Domain Name System (DNS) problem occurs.|
|•||A network authentication problem occurs.|
To resolve this problem, make sure that the proxy settings are correct. To do this, use the following techniques:
Out of this 3 option, first one works for us.
Reference Taken From