Local WebService will not Update

B

Bill44077

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!
 
J

John Saunders [MVP]

Bill44077 said:
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.
 
B

Bill44077

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top