客户端发现“text / html的”响应内容类型,但预计'文本/ XML“ [英] Client found response content type of 'text/html', but expected 'text/xml'

查看:103
本文介绍了客户端发现“text / html的”响应内容类型,但预计'文本/ XML“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个错误:

客户端发现'text / html的响应内容类型,但预计'文本/ XML。

Client found response content type of 'text/html', but expected 'text/xml.

我添加了生活搜索网站的参考。当我生成项目实施的成功。但在那之后,一旦我进入文本框和放一些文本;输入搜索按钮,它给出了这样的错误。我用我的本地机器和放大器;使用.NET 2.0和C#。

PLZ帮我...

在此先感谢...

I am adding web reference for live search. When i build the project its Successful. But after that once i enter some text in textbox & enter search button it gives this error. I am Using my local machine & Using .net 2.0 with C#.
Plz help me...
Thanks In Advance...

推荐答案

由于马特说,它可能是回来了一个错误页面

As Matt said, it's probably an error page coming back.

无论是使用类似的Fiddler 或网络嗅探器如 Wireshark的看到原始的反应是什么 - 应该帮助你到这是怎么回事的底部。

Either use a proxy like Fiddler or a network sniffer like WireShark to see what the raw response is - that should help you get to the bottom of what's going on.

这篇关于客户端发现“text / html的”响应内容类型,但预计'文本/ XML“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆