Re: Can't add web reference



You have to keep the ASP.Net web server running in order to connect to it. When you run the ASP.Net Web Service website, you will see an icon appear in your systray. Make sure that you do not close it. You will also need to change the Web Service website to NOT use dynamic ports so that your reference will not have to be constantly updated.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com



"Titus" <Titus@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3018AF3F-90AA-446D-8BFF-37077DE2117D@xxxxxxxxxxxxx:

Hi,

Am having a bit of a problem adding web reference to a web service.

I created a new Web Service called Lotto using the Visual Web Developer 2005
Expression Edition by selecting New Website->ASP.NET Web Service Template.
The Web Service has been tested to work when I hit Build (it opened up IE to
display the Web Service, which returned the XML results I wanted). Then I
created a new Web App by selecting New Website->ASP.NET Web Site Template and
then selected Website->Add Web Reference, and entered
'http://localhost:3763/Lotto/Service.asmx', I got the following:

There was an error downloading 'http://localhost:3763/Lotto/Service.asmx'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it

Can someone please tell me what I need to do?

.



Relevant Pages

  • basic questions
    ... - The computer running an application that exposes a web service needs ... The web server needs to be IIS? ... The computer running an application that consumes a web service does ... not need to have a web server running. ...
    (microsoft.public.dotnet.framework.webservices)
  • WSE3.0 homesite
    ... When creating a setup for my web service, and selecting WSE3.0 in the ... prerequisites, ... so the package will be published to the same location as the bootstrapper." ...
    (microsoft.public.dotnet.framework.webservices.enhancements)

Loading