An ASP.NET setting has been detected that….

By | June 26, 2012
After deploying my Windows Communication Foundation service on IIS 7.5, i was getting the following error.HTTP Error 500.24 – Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

I tried to google it out but unable to find exact solution for this one. Later on, after researching and looking into IIS settings, I resolved the issue and here in this WCF Tutorial, you can find the steps to resolution.
1. Firstly, ensure that WCF is registered properly with IIS and ASP.NET (exact version).
For details on how to register WCF with IIS and ASP.NET?

2. Secondly, Open IIS and go to Advanced Settings of your website/virtual directory. In “Advance Setting” popup, change the Application Pool to “Classic .NET AppPool” and click ok.

Important thing to remember is that the Application Pool that is being used by our application should have two important settings.
a) Managed Pipeline Mode of AppPool should set to “Classic” instead of “Integrated”.
b) .NET Framework Version of AppPool should be the same we used for the WCF service.

Having these two settings, we can create and use a new AppPool for our application and we don’t need to be specific to “Classic .NET AppPool”.

Top 10 Interview Questions and Answers Series:

Category: Uncategorized Tags: , ,


Imran Abdul Ghani is working as Software Developer(Senior) with extensive knowledge in Web development technologies especially C#, ASP.NET, MVC, WCF, Web API, ADO.NET Entity Framework, jQuery etc. He has several years of experience in designing/developing enterprise level applications. He is Microsoft Certified Solution Developer for .NET (MCSD.NET) since 2005. You can reach his blogging at,, and