neuDev33
neuDev33

Reputation: 1623

Calling a web service gives "Unable to connect to remote server error"

I am calling a web service from .net development environment located on my company's server. Everything was working fine until yesterday and it was returning correct data. However, today it suddenly gives me an error "Unable to connect to remote server". I entered the service URL in the browser, and that works fine. Does anybody have any idea what this problem could be about?

Upvotes: 7

Views: 19291

Answers (2)

pradeep
pradeep

Reputation: 1

Just delete the webservice from app reference and re add.. it will work again.the error happens just because port number of webservice changed.

Upvotes: 0

Petru Gardea
Petru Gardea

Reputation: 21658

First thing that comes to my mind is that the proxy configuration is now different between your application and your browser. Alternatively, it could be an antivirus program running on your machine that had its configuration updated.

Upvotes: 3

Related Questions