Last post Jan 30, 2013 01:43 PM by John_Scanlon
Jan 29, 2013 08:13 PM|John_Scanlon|LINK
I have exactly the same question a user named Greg Frazier asked back in 2010. I'm trying to deploy a web service to my localhost IIS server and I get the message "Web deployment task failed. (Site 'localhost' does not exist.)
(Someone named "Bruce L" replied to Greg with this: "Do you have web deploy installed on the target server?" -- Bruce, the "target server" is my own machine! I also assume Greg hadn't created some convoluted alias where "localhost" on his machine
meant some remote server. And according to the documentation, "Web deploy" comes with VS 2010! So yes, I think I do have Web Deploy, and yes, my target server really is my local host, which is up and running, configured with .NET 4.0, and I've already even
set up a virtual directory as an application with a .NET 4.0 application pool where I want to publish this web service. And I am getting exactly the same message as Greg. I too have tried every variation I can think of. Yes, I can use some other method of
deploying, but I'd really like to figure out what's going wrong.
Just like Greg, this is my service URL: http://localhost/WSOffering
And this is one of the many tries I've made for Site/application: localhost/WSOfferings
Sorry to be so hard on you, Bruce L, but this is frustrating, especially with someone else having EXACTLY the same problem so long ago and still no answers out there. I'd really like to understand what's going on with this....
Jan 29, 2013 08:27 PM|tdykstra|LINK
Did you try setting Service URL to "localhost" and Site/application to "Default Web Site/WSOffering"? -- see this tutorial:
Jan 30, 2013 11:35 AM|John_Scanlon|LINK
Thanks very much, tdykstra, for looking at this the first day it was posted. I guess my frustration yesterday was getting the better of me, reading over that post I left! Thank you very much also for pointer to the tutorial - I want to understand what's
going on in the background here. I'm about to go through it but wanted to mark this as resolved - the publish when without a hitch with your suggestions!
Jan 30, 2013 01:43 PM|John_Scanlon|LINK
I'd just like to add in this final update to this question that your tutorial (recommended in your answer) is truly excellent. I'd highly recommend it to anyone new to VS 2010 web publishing, and imagine it has a lot to offer even to those more experienced
with this facility.