HighTechTalks DotNet Forums  

Local WebService will not Update

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Local WebService will not Update in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Bill44077
 
Posts: n/a

Default Local WebService will not Update - 12-22-2007 , 06:58 AM






Hi,

I have a asmx webservice that I am using. I am running that locally from
within Visual Studio 2005. The client winform has a reference to that local
webservice. When I first load my project in VS2005 (using TFS as code
management) and try to run my client - it gives an error that it can't find
the webservice. If I go and try to do an Update in my web references to this
webservice, it gives me another error: "There was an error downloading
http://localhost:45683/MyService.asm'. Unable to connect to the remote
server...'

In order to get my webservice to work I need to delete the Web Reference to
it and then re-add it. Then all is fine. Is this the only way to get the
webservice to run?

thanks!


Reply With Quote
  #2  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Local WebService will not Update - 12-23-2007 , 12:20 PM






"Bill44077" <Bill44077 (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a asmx webservice that I am using. I am running that locally from
within Visual Studio 2005. The client winform has a reference to that
local
webservice. When I first load my project in VS2005 (using TFS as code
management) and try to run my client - it gives an error that it can't
find
the webservice. If I go and try to do an Update in my web references to
this
webservice, it gives me another error: "There was an error downloading
http://localhost:45683/MyService.asm'. Unable to connect to the remote
server...'

In order to get my webservice to work I need to delete the Web Reference
to
it and then re-add it. Then all is fine. Is this the only way to get the
webservice to run?
If you look at your Project properties, you'll find that you have the web
service set to run in the Local VS Web Server, using a random port. Most
likely, you don't want your random port number to be stored in TFS, because
the next developer who works on the project will be using a different random
port number.

Instead, you may want to pick a port number, or to run from IIS.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #3  
Old   
Bill44077
 
Posts: n/a

Default Re: Local WebService will not Update - 12-26-2007 , 06:00 AM



Hi John,

Thanks for the quick reply! Yes - I do realize that I am saving this random
port number in TFS and currently I am the only person using this code. When I
remove the web service reference and add it back in, it adds it as the same
port - and then it works fine. I just thought there might be an easier way to
re-establish this web service once VS2005 has been closed and then opened
again.


"John Saunders [MVP]" wrote:

Quote:
"Bill44077" <Bill44077 (AT) discussions (DOT) microsoft.com> wrote in message
news:7927E65C-937B-478D-A937-9AB644398C81 (AT) microsoft (DOT) com...
Hi,

I have a asmx webservice that I am using. I am running that locally from
within Visual Studio 2005. The client winform has a reference to that
local
webservice. When I first load my project in VS2005 (using TFS as code
management) and try to run my client - it gives an error that it can't
find
the webservice. If I go and try to do an Update in my web references to
this
webservice, it gives me another error: "There was an error downloading
http://localhost:45683/MyService.asm'. Unable to connect to the remote
server...'

In order to get my webservice to work I need to delete the Web Reference
to
it and then re-add it. Then all is fine. Is this the only way to get the
webservice to run?

If you look at your Project properties, you'll find that you have the web
service set to run in the Local VS Web Server, using a random port. Most
likely, you don't want your random port number to be stored in TFS, because
the next developer who works on the project will be using a different random
port number.

Instead, you may want to pick a port number, or to run from IIS.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.