When you are work with WCF service and IIS, you may get the followiung error.
"The page you are requesting cannot be served because of the extension configuration.If the page is a script,add a handler.if the file should be downloaded, add a MIME map."
Normally when we host a WCF Service i9n IIS and while browsing we get the below frustrating screen .
Error message in above screen is very clear. We need to add MIME type for .SVC extension.
To solve above problem
- Open command prompt as Administrator
- Navigate to C:Windows\Microsoft.Net\Framework\v3.0
3. Type the command
Now MIME type has been registered for the .Svc extension and you should not face any problem , hosting WCF Service in IIS.Hope this help and save your times.