Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 492
  • Last Modified:

soap exception: the remote name could not be resolved

I have a web service that has been running just fine... this morning, I went to try it and got the following exception when called from a C# program, which also worked last night:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Net.WebException: The remote name could not be  resolved: 'www.findbookprices.com' at System.Net.HttpWebRequest.GetResponse()

When I test the web service stand-alone, it works; when I call it from my C# program, it fails...

Any ideas?
0
rmmarsh
Asked:
rmmarsh
  • 3
1 Solution
 
jeebukarthikeyanCommented:
hi,
in the c# take the solution explore
click on the web service abd select the web service
and click on update web reference

b u d d h a
0
 
rmmarshAuthor Commented:
been there, done that (several times)... I rebuilt both the C# program and the Webservice... same-o, same-o...
0
 
rmmarshAuthor Commented:
Oops...spoke too soon... tried to test again (stand-along) and now it's failing... here is the code:

        StringBuilder page = new StringBuilder();
        byte[] buf = new byte[8192];

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create(@"http://www.findbookprices.com/search/?isbn=" + isbn);
        request.Method = "GET";
        request.KeepAlive = true;
        request.Timeout = 1000 * 60 * 5;  //  timeout of 15 minutes
       
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();

        Stream resStream = response.GetResponseStream();


Any ideas?
0
 
rmmarshAuthor Commented:
I changed some code around and it's working now...  thanks for you help...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now