Yesterday I tried to migrate an Web Application from IIS 6 to IIS 7 integrated managed pipeline mode. After copying the files to the new folder I opened a Web browser and got following error message:
HTTP Error 500.22 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
Most likely causes:
Things you can try:
(Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name)
Since IIS 7 you’ll get more richer error messages and things you can try. In the lower section you’ll find as first step you can try to run AppCmd with the migrate option. I simply copied the command in a command box, hit enter and got an error message that there is no Default Web Site. Ah, I can remember, I changed the name of the Web site some weeks before so I have to check for the real name of the Web site. As the IIS knows the real name the error message could contain the name already. Running AppCmd again with the correct name was working, now.
My old HTTP handler configuration looks like this:
AppCmd creates the new system.webServer section at the end of the web.config file with following configuration:
Another problem I had to fix manually are all of my location tags. The AppCmd migrate process didn’t change any of them:
I have left the old httpHandlers tags that the same web.config is still working on IIS 6.