从WCF访问方法到DotNet时,我收到以下错误
内容类型text/html; 响应消息的charset = utf-8与绑定的内容类型不匹配(text/xml; charset = utf-8).如果使用自定义编码器,请确保正确实现IsContentTypeSupported方法.响应的前1024个字节是:'Runtime Error body {font-family:"Verdana"; font-weight:normal; font-size:.7em; color:black;} p {font-family:"Verdana"; font-weight:normal; color:black; margin-top:-5px} b {font-family:"Verdana"; font-weight:bold; color:black; margin-top:-5px} H1 {font-family: "Verdana"; font-weight:normal; font-size:18pt; color:red} H2 {font-family:"Verdana"; font-weight:normal; font-size:14pt; color:maroon} pre {font-家庭:"Lucida Console"; font-size:.9em} .marker {font-weight:bold; color:black; text-decoration:none;} .version {color:grey;} .error {margin-bottom:10px;} .expandable {text-decoration:underline; 字体重量:粗体; 颜色:海军; 光标:手; }
<body bgcolor="white">
<span><H1>Server Error in '/ORSXMLWCFServiceNew' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>Runtime Error</i> </'.
Run Code Online (Sandbox Code Playgroud)
请帮助我.
wcf ×1