client found response content type of text/html charset=utf-8 but expected text/xml

     今天第一天在新公司接触代码,用svn下载代码,编译配置IIS。

打开Index.apsx页面就报告了这个错误“client found response content type of text/html charset=utf-8 but expected text/xml”,郁闷。

经过分析是Index.aspx调用一个webservice方法时出现了错误。

再接着查看webservice在IIS中配置,发现Webservice的Framework的版本号跟其他项目的不同,修改成一直的,再测试就OK了

 

posted on 2012-09-26 11:15  张浩越  阅读(3364)  评论(0编辑  收藏  举报