By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

How to update web reference?

P: n/a
Hi

I have a webservice project in Visual Studio, and another project which
uses the webservice.

My other project has a web reference to the webservice project, created via
Visual Studio by browsing to "web services in this solution".

Sometimes, I cannot connect connect to my webservice, so I try an "update
web reference" - but this results in an error:

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

Why do I get this error, and how do I convince VS to update the web
reference? The only solution I have found is to delete the web reference
from my project, and then create a new one again - but isn't this kind of
what "update we refence" should do?

Thanks,
Peter
May 29 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Peter K" <xd****@hotmail.comwrote in message
news:e3**************@TK2MSFTNGP04.phx.gbl...
Hi

I have a webservice project in Visual Studio, and another project which
uses the webservice.

My other project has a web reference to the webservice project, created
via
Visual Studio by browsing to "web services in this solution".

Sometimes, I cannot connect connect to my webservice, so I try an "update
web reference" - but this results in an error:

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

Why do I get this error, and how do I convince VS to update the web
reference? The only solution I have found is to delete the web reference
from my project, and then create a new one again - but isn't this kind of
what "update we refence" should do?
Is port 1089 always used by your server, or is this a dynamic port on the
VS.NET development server?

I bet there's nothing listening on port 1089.
--
John Saunders [MVP]
May 29 '07 #2

P: n/a
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in
news:uk**************@TK2MSFTNGP02.phx.gbl:
"Peter K" <xd****@hotmail.comwrote in message
news:e3**************@TK2MSFTNGP04.phx.gbl...
>Hi

I have a webservice project in Visual Studio, and another project
which uses the webservice.

My other project has a web reference to the webservice project,
created via
Visual Studio by browsing to "web services in this solution".

Sometimes, I cannot connect connect to my webservice, so I try an
"update web reference" - but this results in an error:

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

Why do I get this error, and how do I convince VS to update the web
reference? The only solution I have found is to delete the web
reference from my project, and then create a new one again - but
isn't this kind of what "update we refence" should do?

Is port 1089 always used by your server, or is this a dynamic port on
the VS.NET development server?

I bet there's nothing listening on port 1089.
All this activity is happening within Visual Studio - I have not manually
set any values for url or port number. The webservice itself is just a
class within Visual Studio - how do I ensure it is listening, and the
reference to it can be updated?
Thanks,
Peter
May 30 '07 #3

P: n/a
Peter K <xd****@hotmail.comwrote in
news:uU**************@TK2MSFTNGP06.phx.gbl:
All this activity is happening within Visual Studio - I have not
manually set any values for url or port number. The webservice itself
is just a class within Visual Studio - how do I ensure it is
listening, and the reference to it can be updated?
It has something to do with a ".net development server", which runs from
within Visual Studio. I think I need to find out how this server is
restarted, as it appears this server hosts my webservice withing Visual
Studio....
May 30 '07 #4

P: n/a
"Peter K" <xd****@hotmail.comwrote in message
news:OZ**************@TK2MSFTNGP06.phx.gbl...
Peter K <xd****@hotmail.comwrote in
news:uU**************@TK2MSFTNGP06.phx.gbl:
>All this activity is happening within Visual Studio - I have not
manually set any values for url or port number. The webservice itself
is just a class within Visual Studio - how do I ensure it is
listening, and the reference to it can be updated?

It has something to do with a ".net development server", which runs from
within Visual Studio. I think I need to find out how this server is
restarted, as it appears this server hosts my webservice withing Visual
Studio....
That is correct. Look in the project Properties, at the Web tab.
Alternatively, you could host the web service in IIS, at a fixed port.

I think you may be having your problem simply because you have used a
dynamic address as part of the URL for your web reference, and sometimes the
service is not at that address. Put it at a fixed address, and you won't
have that problem.

--
John Saunders [MVP]
May 30 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.