473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 15023
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: VK | last post by:
<http://www.jibbering.com/faq/#FAQ3_2> The parts where update, replacement or add-on is needed are in <update> tag. 3.2 What online resources are available? Javascript FAQ sites, please...
5
by: Greg | last post by:
Hi, I have been unable to resolve this error message: Object Ref not set to an instance of an object. The issue is that I cannot determine which object reference is causing the problem. ...
6
by: Sam-I-Am | last post by:
Hi There I have several websites that use shared assemblies in the GAC. When I try and update the GAC assemblies I get the following error: "The process cannot access the file because it is...
0
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
4
by: John Lafrowda | last post by:
Hi all, I'm trying to handle two projects in one solution (.net 2002, both projects are VB). The first project contains only some public constant definitions (for the moment) and compiles into...
14
by: Steve Teeples | last post by:
I don't understand why I cannot use a property to modify data within a struct. Can someone tell me why I get the error "Cannot modify the return value of "myData.TheData" because it is not a...
3
by: drop | last post by:
Hi all, I'm trying to figure out how references works in Web Application Projects. We have a third party dll that we use in many projects. I've created a folder containing that DLL. That way,...
1
by: jmarcrum | last post by:
Hey everyone, I have a question that's been troubling me for a bit. I work for Alabama Power. I have 1 table (tblOutages). Every morning I import a list of Power Outages for the state of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.