IIS Throws Config File Error - 0x8007000d when trying to deploy netcore2.0 App


I'm trying to deploy a netcore2.0 MVC app to IIS and keep getting the error above. The file permissions are set correctly and I checked that the runtime is downloaded. The error is as follows:

IIS Web Core 


Not yet determined 

Error Code

Config Error

Config File

Requested URL

Physical Path

Logon Method
Not yet determined 

Logon User
Not yet determined 

Following is my Config File (generated by vs code):

<?xml version="1.0" encoding="utf-8"?>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    <aspNetCore processPath=".\Coneckt.Web.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
<!--ProjectGuid: 2833ed36-9a18-47b6-8f33-8998356796d9-->
asked on Stack Overflow Nov 23, 2020 by Esty Rosenberg • edited Nov 23, 2020 by Esty Rosenberg

1 Answer


This error occurs because the ApplicationHost.config or Web.config file contains a malformed XML element, you need to delete the malformed XML element from the ApplicationHost.config or Web.config file.

You can also refer to this link about how to deploy ASP.NET Core on IIS: Host ASP.NET Core on Windows with IIS.

answered on Stack Overflow Nov 23, 2020 by samwu

User contributions licensed under CC BY-SA 3.0