I am trying to deploy an asp.net core web app to my local machine but it gives me the following error: HTTP Error 500.19 - Internal Server Error 0x8007000d. It is the first time I'm attempting it, so I don't understand what is the problem. Searching for solutions, I have found out that there is malformed xml element in the web.config file but since I have never done it, I couldn't understand how to fix this.
This is my web.config file:
<?xml version="1.0" encoding="utf-8"?>
   <configuration>
    <location path="." inheritInChildApplications="false">
       <system.webServer>
          <handlers>
               <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
          </handlers>
          <aspNetCore processPath="dotnet" arguments=".\MyApp.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
      </system.webServer>
     </location>
   </configuration>
  <!--ProjectGuid: 110a64bf-38d2-4b16-8536-814161f00f23-->
What am I doing wrong?