Solved

soap exception: the remote name could not be resolved

Posted on 2006-11-06
4
478 Views
Last Modified: 2008-01-09
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
Comment
Question by:rmmarsh
  • 3
4 Comments
 
LVL 13

Accepted Solution

by:
jeebukarthikeyan earned 500 total points
ID: 17882432
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
 

Author Comment

by:rmmarsh
ID: 17882494
been there, done that (several times)... I rebuilt both the C# program and the Webservice... same-o, same-o...
0
 

Author Comment

by:rmmarsh
ID: 17882510
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
 

Author Comment

by:rmmarsh
ID: 17883586
I changed some code around and it's working now...  thanks for you help...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now