HTTP Error 404.3: WCF Hostes in IIS. Add a MIME type


Normally when we host a WCF  Service in IIS and while browsing we get the following frustrating screen.

1.gif

The error message in the above screen is very clear. We need to add MIME type for .SVC extension. 

To solve above problem 
  1. Open command prompt as Administrator 

  2. Navigate to  C:Windows\Microsoft.Net\Framework\v3.0

    2.gif

  3. Type the command 

    ServiceMode1Reg.exe –i

    3.gif 
Now the MIME type has been registered for the .Svc extension and you should not have any problem hosting WCF Service in IIS. 

Up Next
    Ebook Download
    View all
    Learn
    View all