The 'DefaultConnection-Web.config Connection String' argument cannot be null or empty. VS2013

RickAndMSFT picture RickAndMSFT · Mar 11, 2015 · Viewed 22.5k times · Source

When I deploy my project with "Publish as Azure WebJob" using Visual Studio 2013/update 4, I get the error in the title.

Answer

RickAndMSFT picture RickAndMSFT · Mar 11, 2015

Fixed by removing the following markup from the .pubxml file. You must exit/restart VS after removing the markup (or VS will add it back in).

<ItemGroup>
  <MSDeployParameterValue Include="$(DeployParameterPrefix)DefaultConnection-Web.config Connection String" />
</ItemGroup>