title: AspNetCoreModuleV2 issue .NET Core 3.0
body: <p>Hoping someone can help out with this issue:</p>
  
  <p>I've deployed my .NET Core 3.0 application on Azure, and even though the it it shows "Publish Succeeded." the application isn't loading (http 500, server error).
  The "Diagnose and solve problems" tab in Azure point to the module "AspNetCoreModuleV2" as shown in picture
  <a href="https://i.stack.imgur.com/htqrg.png" rel="nofollow noreferrer">Azure - Diagnose and solve problems</a></p>
  
  <p>I've tried:</p>
  
  <ul>
  <li><p>Installing the .NET 3.0 Runtime Hosting Bundle as suggested here <a href="https://stackoverflow.com/questions/53729956/aspnetcore-2-2-0-aspnetcoremodulev2-error">aspNetCore 2.2.0 - AspNetCoreModuleV2 error</a></p></li>
  <li><p>Changing the <code>modules="AspNetCoreModuleV2"</code> to <code>modules="AspNetCoreModule"</code> on the web.config file, but the file reverts back to  its original values once I publish the app.</p></li>
  <li><p>Adding <code>&lt;AspNetCoreHostingModel&gt;InProcess&lt;/AspNetCoreHostingModel&gt;</code> to the <code>csproj</code> but it didn't make a difference so I've deleted that</p></li>
  </ul>
  
  <p>Here is my current <code>csproj</code> file:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Folder Include="wwwroot\" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="3.0.1"&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6" /&gt;
      &lt;PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.0.1" /&gt;
      &lt;PackageReference Include="Newtonsoft.Json" Version="12.0.3" /&gt;
      &lt;DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.1.0-preview1-final" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>In this is what my <code>web.config</code> file looks like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;location path="." inheritInChildApplications="false"&gt;
      &lt;system.webServer&gt;
        &lt;handlers&gt;
          &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /&gt;
        &lt;/handlers&gt;
        &lt;aspNetCore processPath="dotnet" arguments=".\SportsStore.dll" stdoutLogEnabled="false" stdoutLogFile="\\?\%home%\LogFiles\stdout" hostingModel="inprocess" /&gt;
      &lt;/system.webServer&gt;
    &lt;/location&gt;
  &lt;/configuration&gt;
  &lt;!--ProjectGuid: 3f1b616a-5c07-4b23-9c86-ec6506dc3fa7--&gt;
  </code></pre>
  
  <p>By the way, the application runs without any issues in the local machine</p>
  
  <p>Any help that can point me in the right direction is highly appreciated.</p>