Lets have a look at fresh snapshot.
HTTP Error 500.23 – Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
If you are still confused about the previous post, here is the link.
Internal Server Error – HTTP Error 500.23 – Solution 1
Last time, we received the similar problem while debugging from Visual Studio, this time it is produced by IIS itself after publishing.
We will add small piece of code into web.config file. This can be done using two methods. Either you open any text-editor (notepad) with Administrator Privilege and open web.config from your IIS root or change the setting in Visual Studio web.config and publish again. What you want to is totally on you.
Piece of Code:
...... <system.webServer> <validation validateIntegratedModeConfiguration="false"/> </system.webServer> </configuration>
Place this code inside configuration node. Also, this will not harm you in case of security, This will just tell not to check such settings which are not required.
Thanks for reading. Do not forget to share or provide feedback.