-2

I have published .NET6 application to IIS using VS2022. When I go to the site it is giving me error. I can run/debug it from Visual Studio Error Message HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. enter image description here

Try creating site and deploy code. I want to be publish site working on IIS

  • Does this answer your question? [asp.net core web api published in IIS after moved to different IIS server pc gives error 500.19 (0x8007000d)](https://stackoverflow.com/questions/49034308/asp-net-core-web-api-published-in-iis-after-moved-to-different-iis-server-pc-giv) – Lex Li Nov 10 '22 at 09:18

1 Answers1

0

This error may be caused by IIS not being able to parse the xml configuration node aspNetCore in Web.config.

You need to check if ASP.NET Core module is not installed, if yes, just download and install Hosting Bundle can be solved. Check for aspnetcore.dll in %windir%\System32\inetsrv. This document is about .NET Core Hosting Bundle

YurongDai
  • 1,362
  • 1
  • 2
  • 7