Wednesday, June 25, 2014

HTPP Error 500.19 "Protocol Mapping" While hosting a WCF service in IIS

When you create a WCF service with VS 2013.And when you try to browse the .svc file it gives you the following error:
"The configuration section 'protocolMapping' cannot be read because it is missing a section declaration"

Error Summary

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information
ModuleIIS Web Core
NotificationUnknown
HandlerNot yet determined
Error Code0x80070032
Config ErrorThe configuration section 'protocolMapping' cannot be read because it is missing a section declaration
Config File\\?\C:\inetpub\wwwroot\test\web.config
Requested URLhttp://localhost:11\test.svc
Physical Path
Logon MethodNot yet determined
Logon UserNot yet determined
Config Source
   25:     
26: 27:
Links and More Information This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error. View more information »


Solution: 
You need to ensure that the app Pool you are using for the IIS site is setup to use .net 4, because protocol mapping is only available in .net 4. By default it is set to V2.0

Hope this helps

1 comment:

Anonymous said...

Alveo
First of all I would like to say superb blog! I had a quick question in which I'd like to ask if you do not
mind. I was interested to find out how you center
yourself and clear your thoughts prior to writing.
I have had a tough time clearing my mind in getting my ideas out.
I do enjoy writing but it just seems like the first 10 to 15 minutes are usually lost simply just trying
to figure out how to begin. Any suggestions or hints?
Kudos!