Error 500.19 with 0x8007000d when running ASP.NET Core app in IIS despite AspNetCoreModule being installed
Having ruled out everything app-specific that I (and the many helpful commenters, especially Daboul) could think of, and having reviewed the visible IIS settings, I resorted to looking at the primary configuration file for IIS as a whole: applicationHost.config
Per Introduction to ApplicationHost.config, this file is located in %windir%\system32\inetsrv\config
. Since the real application is working on a different machine at my office, I compared them using a diff program, and found that the following node was missing from my configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<configSections>
<!-- ...lots of other stuff... -->
<sectionGroup name="system.webServer">
<!-- ...lots of other stuff... -->
<!--This "section" node for aspNetCore is the one that was missing-->
<section name="aspNetCore" overrideModeDefault="Allow" />
Adding that one node resolved the error.
Oddly enough, the AspNetCoreModule itself is referenced multiple times later in the file. Since I haven't manually edited this file before, it seems possible that this was some kind of installation error when installing the AspNetCoreModule the first time.
ASP.NET: HTTP Error 500.19 – Internal Server Error 0x8007000d
Error 0x8007000d means URL rewriting module (referenced in web.config) is missing or proper version is not installed.
Just install URL rewriting module via web platform installer.
I recommend to check all dependencies from web.config and install them.
Related Topics
Programmatic Control of Virtual Desktops in Windows 10
Using Lambda Expressions for Event Handlers
How to Group Windows Form Radio Buttons
Wpf C#: Rearrange Items in Listbox via Drag and Drop
In C#, How to Instantiate a Passed Generic Type Inside a Method
How to Format a Nullable Datetime with Tostring()
How Does Entity Framework Work with Recursive Hierarchies? Include() Seems Not to Work with It
Microsoft Office Excel Cannot Access the File 'C:\Inetpub\Wwwroot\Timesheet\App_Data\Template.Xlsx'
Convert Rows from a Data Reader into Typed Results
Interfaces VS. Abstract Classes
How to List Directory Contents with Ftp in C#
How to Get the Taskbar's Position and Size
Specifying Generic Collection Type Param at Runtime
Find Character with Most Occurrences in String
How to Add 'Comments' to a Jpeg File Using C#