title: Unrecognized configuration section "microsoft.applicationServer" when trying to build from command line or building a deployment package
body: <p>yet I have another problem with building from the command line.
  I have a project which i can build in Visual Studio just fine.</p>
  
  <p>But when I try to build a deployment Package in Visual Studio 2012 (publish->Web Deploy Package) I get hit with the error</p>
  
  <pre><code>D:\somePath\web.config(905): error ASPCONFIG: unrecognized configuration section "microsoft.applicationServer".
  </code></pre>
  
  <p>But the normal build works fine for that project.</p>
  
  <p>I also run into the same error when I try to build over command line</p>
  
  <pre><code>msbuild D:\PathTo\Solution\Project\Project.csproj
      /fl /flp:logfile="D:\buildadventures\Build.log";errorsonly;verbosity=diagnostic
      /t:Build /p:SolutionDir="D:\PathTo\Solution\\";Configuration=Release;Platform=AnyCpu
  </code></pre>
  
  <p>And I also get the very same error when trying to build and package from command line (no surprise when even just the build fails)</p>
  
  <pre><code>msbuild D:\PathTo\Solution\Project\Project.csproj
      /fl /flp:logfile="D:\buildadventures\Build.log";errorsonly;verbosity=diagnostic
      /t:Build;Package
      /p:SolutionDir="D:\PathTo\Solution\\";Configuration=Release;Platform=AnyCpu;
      PackageLocation="D:\buildadventures\SomeProject.zip";AutoParameterizationWebConfigConnectionStrings=false
  </code></pre>
  
  <p>Can anyone help me out with this; what do I have to do to be able to create my deployment package from that?</p>