Visual Studio Web Visualization Error - "NormalizeServiceUrl"

I am setting up a new dev server and moving some old projects to this. I opened one of the old web projects. Set your publishing options to use Web Deploy in the same way as I did for many projects. However, in doing so I get the following error when I click preview.

Error 3 The task "NormalizeServiceUrl" was not assigned a value for the required parameter "ServiceUrl".

If I try to publish with a preview, I get an additional error.

Web Deploy Publishing / Package Deployment Error: Missing or Invalid Property Value for $ (MsDeployServiceUrl)

I looked through everything and can not find help with the error "NormalizeServiceUrl".

0
source share
2 answers

I also had this error in Visual Studio 2013. It looks like the project has not been properly updated since VS 2010. I changed this line:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

To (v10.0 => v12.0):

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" />
+2
source

I found a message about a similar problem. This led me to open the vbproj file. I looked at our project, which looked fine.

He had these 3 lines in the vbproj file.

<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />  
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

My project with a problem only had

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />

I added two other lines, and this problem was resolved. I hope this helps anyone who comes across this.

0
source

All Articles