html 数据类型 text,客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。...

当前位置:编程学习 > C#/ASP.NET >>

客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。

发布好WebService之后,在客户端用浏览器浏览,可以正常查看到里面的方法。然后在VS2005用在WIN CE平台上添加Web引用,也能正常引用WebService,然后我生成WIN CE 程序,然后运行程序。就报下面的错误。这个错误我搞了好几天。都没有搞好。我之前没碰到这个问题。因为之前也是这么做的。网上也找了好多资料。尝试他们的方法。都没弄好。错误如下。希望看到的朋友。帮我看看。小弟感激不尽!

有关调用实时(JIT)调试而不是此对话框的详细信息,

请参见此消息的结尾。

************** 异常文本 **************

System.InvalidOperationException: 客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。

请求失败,错误信息为:

--

html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

服务器不可用

服务器应用程序不可用

您试图在此 Web 服务器上访问的 Web 应用程序当前不可用。请点击 Web 浏览器中的“刷新”按钮重试您的请求。

管理员注意事项:

 详述此特定请求失败原因的错误信息可在 Web 服务器的系统事件日志中找到。请检查此日志项以查明导致该错误发生的原因。

--.

在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

在 FirstDeviceApplication.WebReference.Service.GetZXGInfo() 位置 D:\My Documents\Visual Studio 2005\Projects\复件 FirstDeviceApplication\FirstDeviceApplication\Web References\WebReference\Reference.cs:行号 335

在 FirstDeviceApplication.F_Login.F_Login_Load(Object sender, EventArgs e) 位置 D:\My Documents\Visual Studio 2005\Projects\复件 FirstDeviceApplication\FirstDeviceApplication\F_Login.cs:行号 97

在 System.Windows.Forms.Form.OnLoad(EventArgs e)

在 System.Windows.Forms.Form.OnCreateControl()

在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

在 System.Windows.Forms.Control.CreateControl()

在 System.Windows.Forms.Control.WmShowWindow(Message& m)

在 System.Windows.Forms.Control.WndProc(Message& m)

在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)

在 System.Windows.Forms.ContainerControl.WndProc(Message& m)

在 System.Windows.Forms.Form.WmShowWindow(Message& m)

在 System.Windows.Forms.Form.WndProc(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************

mscorlib

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

FirstDeviceApplication

程序集版本: 1.0.0.0

Win32 版本: 1.0.0.0

基本代码: file:///D:/My%20Documents/Visual%20Studio%202005/Projects/复件%20FirstDeviceApplication/FirstDeviceApplication/bin/Debug/FirstDeviceApplication.exe

----------------------------------------

System.Windows.Forms

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

grproLib

程序集版本: 1.0.4767.17318

Win32 版本: 1.0.4767.17318

基本代码: file:///D:/My%20Documents/Visual%20Studio%202005/Projects/复件%20FirstDeviceApplication/FirstDeviceApplication/bin/Debug/grproLib.DLL

----------------------------------------

System.Web.Services

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

----------------------------------------

System.Xml

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Configuration

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

4gx_d3v9

程序集版本: 1.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.resources

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.resources.dll

----------------------------------------

System.Web.Services.resources

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services.resources/2.0.0.0_zh-CHS_b03f5f7f11d50a3a/System.Web.Services.resources.dll

----------------------------------------

System.Windows.Forms.resources

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------

mscorlib.resources

程序集版本: 2.0.0.0

Win32 版本: 2.0.50727.42 (RTM.050727-4200)

基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

************** JIT 调试 **************

要启用实时(JIT)调试,

该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置

jitDebugging 值。

编译应用程序时还必须启用

调试。

例如:

启用 JIT 调试后,任何无法处理的异常

都将被发送到在此计算机上注册的 JIT 调试器,

而不是由此对话框处理。

补充:.NET技术 , Web Services

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值