1

I have an aplication API .net core and I I published it. But when I want to run with IIS, ends in error: Error HTTP 500.19 - Internal Server Error (0x8007000d)

This error is because the IIS not recognize the configuration of aspNetCore in the web.config

How can I resolved it?

enter image description hereenter image description hereenter image description here

  • In addition to @LexLi's problem, at minimum you should place your configuration within text when posting a question, not as a screenshot of your editor. Stack Overflow includes tools for formatting text as code so it's readable and even syntax highlighted. This makes it easier for people to read and even copy-and-paste, if necessary, in an attempt to reproduce the problem. – Jeremy Caney Jun 05 '21 at 18:17

1 Answers1

0

This problem occurs because the ApplicationHost.config or Web.config file contains a malformed or unidentified XML element. IIS can't identify the XML elements of the modules that are not installed. For example, IIS URL Rewrite module.

Resolution:

  1. Delete the malformed XML element from the ApplicationHost.config or Web.config file.
  2. Check the unidentified XML elements, and then install the relevant IIS modules.
  3. Install URL rewriting module.
samwu
  • 3,857
  • 3
  • 11
  • 25