Windows Server 2008 IIS 7 HTTP Error 500.19

iis-7windows-server-2008

I'm trying to upgrade a WCF web service from .NET 3.0 to 4. I've run

Aspnet_regiis.exe

and

ServiceModelReg.exe

As well as changed the Application Pool to use v4.0. I rebuilt the service dll with .NET 4.0 as the target and moved it to the /bin directory on my site.

I'm running into an error that is driving me nuts. Whenever I try to hit the site, I get the following error:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

The configuration section
'system.serviceModel' cannot be read
because it is missing a section
declaration

I've tried solutions I've found from googling and nothing is working. I feel like someone more experienced with IIS 7 would know exactly what's wrong. Can anyone help with this issue

Best Answer

I found the problem. I needed to install the hotfix described here, which is step 3 in the "One-time setup procedure for WCF samples" for these WCF code samples.