473,569 Members | 2,844 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 15050
"Peter K" <xd****@hotmail .comwrote in message
news:e3******** ******@TK2MSFTN GP04.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.saunder s at trizetto.comwro te in
news:uk******** ******@TK2MSFTN GP02.phx.gbl:
"Peter K" <xd****@hotmail .comwrote in message
news:e3******** ******@TK2MSFTN GP04.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******** ******@TK2MSFTN GP06.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******** ******@TK2MSFTN GP06.phx.gbl...
Peter K <xd****@hotmail .comwrote in
news:uU******** ******@TK2MSFTN GP06.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
2504
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 check these first:- <http://developer.irt.org/script/script.htm>
5
445
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. The line of user code that gives the error message is:
6
2533
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 being used by another process" It seems I have to restart IIS to update the GAC assemblies. This is not a possibility. How else can I update the...
0
5805
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 which indexes computer magazine articles for personal reference. I am developing a Visual Basic.NET program whose sole purpose is to enter new...
4
3813
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 class libarary. The second one is builds an executable which has a reference to the assembly of the first project to retrieve global constant...
14
3265
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 variable. Here is what breaks. struct Data { public Data(){} private int someData;
3
3387
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, when we want to update the DLL, we simply have to update it in that folder and it should normally be distributed to all the project that have...
1
2168
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 Alabama into that table. I have a yes/no (chkOutage) field set-up in the table to set chkOutage = TRUE on every record that is imported. Here's my...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.