现在的位置: 首页 > 综合 > 正文

WCF(500)错误(分析器错误)一例.

2012年05月04日 ⁄ 综合 ⁄ 共 1109字 ⁄ 字号 评论关闭

今天进行分布式调试的时候,突然出现如下错误:

响应消息的内容类型 text/html; charset=utf-8 与绑定(text/xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 1024 个字节为:“<html>
    <head>
        <title>分析器错误</title>
        <style>
         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-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>“/”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>

            <h2> <i>分析器错误</i> </h2><”。

 

本来都好好的,但回到家调试就不行了,经过分析,发现是由于自己重新对WCF服务程序改名后出现了两个服务程序集,包含了两个global类所致.

记下来,方便以后查询

 

抱歉!评论已关闭.