Solved

soap exception: the remote name could not be resolved

Posted on 2006-11-06
4
483 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

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