Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2007

Tip: Looking for answers? Try searching our database.

Local WebService will not Update

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill44077 - 22 Dec 2007 12:58 GMT
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!
John Saunders [MVP] - 23 Dec 2007 18:20 GMT
> Hi,
>
[quoted text clipped - 14 lines]
> 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.
Signature

--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Bill44077 - 26 Dec 2007 12:00 GMT
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.

> > Hi,
> >
[quoted text clipped - 22 lines]
>
> Instead, you may want to pick a port number, or to run from IIS.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.