Click here to Skip to main content
15,886,110 members
Articles / All Topics

HTTP Error 500.23 – Internal Server Error – Solution 2

Rate me:
Please Sign up or sign in to vote.
4.67/5 (3 votes)
3 Feb 2015CPOL2 min read 38.6K   1
HTTP Error 500.23 – Internal Server Error – Solution 2

HTTP Error 500.23 – Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Most likely causes:

  • This application defines configuration in the system.web/httpHandlers section.

Things You Can Try

  • Migrate the configuration to the system.webServer/handlers section. You can do so manually or by using AppCmd from the command line – for example, %SystemRoot%system32inetsrvappcmd migrate config “Default Web Site/”. Using appcmd to migrate your application will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.
  • If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.
  • Alternatively, switch the application to a Classic mode application pool – for example, appcmd set app “Default Web Site/” /applicationPool:”Classic .NET AppPool. Only do this if you are unable to migrate your application.

(Set “Default Web Site” and “Classic .NET AppPool” to your application path and application pool name.)

If you are still confused about the previous post, here is the link:

Problem

Last time, we received a similar problem while debugging from Visual Studio, this time it is produced by IIS itself after publishing.

Image 1

Solution

We will add a 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 up to you.

Piece of Code

XML
......
<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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder P.Yar.B Complex
Nepal Nepal
John Bhatt is an IT Professional having interest in Web technology. He is Web Designer, Developer, Software Developer, Blogger and Technology Geek. Currently he writes his Blogs at Blog of P.Yar.B and various other Sites. He is Main author and founder of Download Center.
Contact Him at : Facebook | Twitter | Website | PRB - Blog.

Comments and Discussions

 
QuestionIt really work! Pin
Member 1375712312-Sep-18 16:59
Member 1375712312-Sep-18 16:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.