VSeWSS v1.3 on Windows 7 – WCF Service hosted in IIS 7.0

Error:

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<html>

    <head>

        <title>The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))</title>


Solution:

Step 1-

- Under Control Panel > Programs > Programs and Features > Click Turn Windows Features On or Off.
- Under Microsoft .NET Framework 3.0, choose Windows Communication Foundation HTTP Activation.
- Install the selected features.

Step 2-

Change the binding in IIS Manager for the VSeWSS web site (created by the VSeWSS v1.3 installer) to “All Unassigned”.

VseWSS.png

 

 Step 3-

Make sure that the Identity of Application Pool for VSeWSS has admin rights.

Step 4-

Open the command prompt and run the following command

"C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\servicemodelreg.exe" –i

Step 5-

Reset the iis

Step 6-

Close and reopen the application