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?
rmmarshAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jeebukarthikeyanConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.