title: The "TransformWebConfig" task failed unexpectedly - System.Exception: The acceptable value for AspNetCoreModuleHostingModel property is either
body: <p>I get</p>
  <blockquote>
  <p>'The &quot;TransformWebConfig&quot; task failed unexpectedly. System.Exception: The acceptable value for AspNetCoreModuleHostingModel property is either &quot;InProcess&quot; or &quot;OutOfProcess&quot;.'</p>
  </blockquote>
  <p>error while publishing an ASP.NET Core 2.2.0 application (actually it is the included sample application) for win-x64 environment. Both Visual Studio 2017 and 2019 gives the same error. I am working on Windows 10. What should I do to solve this?
  Last part of publish Output is:</p>
  <pre><code>c:\users\engin\source\repos\NetCoreWebApplication2\NetCoreWebApplication2\obj\Release\netcoreapp2.2\win-x64\PubTmp\Out\
  C:\Program Files\dotnet\sdk\2.2.200-preview-009648\Sdks\Microsoft.NET.Sdk.Publish\build\netstandard1.0\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets(49,5): Hata MSB4018: &quot;TransformWebConfig&quot; görevi beklenmedik biçimde başarısız oldu.
  System.Exception: The acceptable value for AspNetCoreModuleHostingModel 
   property is either &quot;InProcess&quot; or &quot;OutOfProcess&quot;.
     konum: Microsoft.NET.Sdk.Publish.Tasks.WebConfigTransform.TransformAspNetCore(XElement aspNetCoreElement, String appName, Boolean configureForAzure, Boolean useAppHost, String extension, String aspNetCoreModuleName, String aspNetCoreHostingModel)
     konum: Microsoft.NET.Sdk.Publish.Tasks.WebConfigTransform.Transform(XDocument webConfig, String appName, Boolean configureForAzure, Boolean useAppHost, String extension, String aspNetCoreModuleName, String aspNetCoreHostingModel, String environmentName)
     konum: Microsoft.NET.Sdk.Publish.Tasks.TransformWebConfig.Execute()
     konum: Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
     konum: Microsoft.Build.BackEnd.TaskBuilder.&lt;ExecuteInstantiatedTask&gt;d__26.MoveNext()
  
  2 Derleme başarısız oldu. Daha fazla ayrıntı için çıktı penceresini denetleyin.
  ========== Oluşturma: 1 başarılı, 0 başarısız, 0 güncel, 0 atlandı ==========
  ========== Yayın: 0 başarılı, 1 başarısız, 0 atlandı ==========
  </code></pre>