Content Type Mismatch

Nov 3, 2009 at 9:41 AM


I am using Remote Page Provider that you have in codeplex. I configured the two websites as client and server and changed the web.config according to the instructions in the website.

I am getting an error

"The content type text/html;charset=iso-8859-1 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."

If you upload the sample client and server web.configs that you use, it would be of great help. I couldn't trace where I am making this issue.

The error happens in the RemoteProviderClient.cs in the _RemoteProviderProxy.Initialize(ref _initializeData);

Please do the need.


Nov 3, 2009 at 1:43 PM
Edited Nov 3, 2009 at 1:59 PM

Please check if the binding is same on both client and server....

sometimes the binding is same but the bindingconfiguration is different. I mean it should be exact same on both server and client