472,119 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

How to update web reference?

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
4 14906
"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
"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
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
"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.

Similar topics

27 posts views Thread by VK | last post: by
6 posts views Thread by Sam-I-Am | last post: by
4 posts views Thread by John Lafrowda | last post: by
14 posts views Thread by Steve Teeples | last post: by
3 posts views Thread by drop | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.