This project is read-only.

error when running on WCF service

May 18, 2011 at 10:30 PM

Hello,

I am a newbie  and  trying to use Nhydrate in order to generate WCF services. I am using VS2010 installed on 64 bit Win7.I've downloaded the acmesales sample. It compiles without errors. 

I've chanced the web.config in Acme.TestSite 

from 

<!--<add key="ProxyAssembly" value="Acme.Northwind.MockProxy"/>-->   

to

<add key="ProxyAssembly" value="Acme.Northwind.WCFProxy"/>

in order to use the the website with WCF service. But I get the error given below. Any suggestion? Thank you.

Inanc

 

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>acmesales.com</title><script type="text/javascript" src="/js/general.js"></script><script type="text/javascript">ChkRequestEnc('YToyMjp7aTowO3M6MTk6IjIwMTEtMDUtMTkgMDc6MTc6MDYiO2k6MTtzOjc6IjQ2MzIwODEiO2k6MjtOO2k6MztOO2k6NDtzOjE2OiIvRGF0YVNlcnZpY2Uuc3ZjIjtpOjU7czoxNDoiNzguMTg2LjEyMy4xNzYiO2k6NjtzOjE6IjMiO2k6NztzOjE6IngiO2k6ODtzOjA6IiI7aTo5O3M6MjoiVFIiO2k6MTA7czo2OiJBTktBUkEiO2k6MTE7czo2OiJBTktBUkEiO2k6MTI7czo2OiIyOTc5NTQiO2k6MTM7czoxMzoiYWNtZXNhbGVzLmNvbSI7aToxNDtzOjY3OiJodHRwOi8vd3d3LnNlYXJjaG51dC5jb20vP3JlZ2lzdHJhcj0yMDk0OUI4MTUxJmRvbWFpbj1hY21lc2FsZXMuY29tIjtpOjE1O2Q6MjU7aToxNjtOO2k6MTc7TjtpOjE4O2Q6MjU7aToxOTtzOjA6IiI7aToyMDtzOjg6IlJlamVjdGVkIjtpOjIxO047fQ==');</script><script type="text/javascript">
</script></head>
<frameset rows="100%,*" frameborder="no" border="0" framespacing="0">  <!-- SCC a3 -->  <frame src="http://www.searchnut.com/?registrar=20949B8151&domain=acmesales.com">
<noframes><body bgcolor="#ffffff" text="#000000">  <a href="http://www.'.