I am trying to publish my Web Service, and I set the Publish method to Web Deploy.
The Service URL is localhost and the Site/Application is set to Default Web site. When I try to validate the connection, I get an error stating that :
“the target “MSDeployTestConnection” does not exist in the project”.
I have found no help on this problem on the net. Does anyone know what to do here?
I had the same problem in one of my projects. Fortunately I had another project that was working, so I compared the .csproj files.
the one with the problem was missing this entry:
so the import of the Microsoft.WebApplication.targets was not running due to it’s condition
I simply added the property group and everything worked fine.
(note that i’m working in vs2012 but the project was originally created in vs2010. Check your visualstudio version and vstoolpath path)
Good luck