用smart client 做一系统
在本机上用测试 smart client形式运行无此问题,直接运行exe也没问题
但一到客户端运行就出这个错误
客户端已经设好权限,装好.net运行库
头大!!!
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参阅此消息的结尾。************** 异常文本 **************
System.InvalidOperationException: 客户端发现响应内容类型为“text/html”,但应该是“text/xml”。
请求失败,错误信息为:
--
<html>
   <head>
      <title>??????????????????
</title>
   </head>
   <body>
      <h1><font face=Verdana color=#ff3300>??????????????????????????????
</font></h1>
      <p>
      <font face=Verdana>
        ??????????????? Web ????????????????????? Web ??????????????????????????????????????? Web ??????????????????????????????????????????????????????
</p>
   <p>
   <b>?????????????????????:
</b> ?????????????????????????????????????????????????????? Web ?????????????????????????????????????????????????????????????????????????????????????????????????????????
 </p>
   </body>
</html>--.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Da.localhost.wse.Ds(String s_tmp, String tablename)
   at Da.d_login.r_login(String User, String PassWord, String localip, String compute)
   at bll.b_login.c_login(String user, String password, String localip, String compute)
   at winform.Frm_Login.button1_Click(Object sender, EventArgs e)
   at winform.Frm_Login.Txt_Pass_KeyDown(Object sender, KeyEventArgs e)
   at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加载的程序集 **************
mscorlib
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
mscorlib.resources
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.573
    基本代码: file:///c:/windows/assembly/gac/mscorlib.resources/1.0.5000.0_zh-chs_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
load
    程序集版本: 1.0.2202.30432
    Win32 版本: 1.0.2202.30432
    基本代码: file:///C:/Documents%20and%20Settings/zx/桌面/load.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
winform
    程序集版本: 1.0.2202.30833
    Win32 版本: 无法使用
    基本代码: http://ws396.vicp.net/sun_test/winform.dll
----------------------------------------
bll
    程序集版本: 1.0.2202.30833
    Win32 版本: 无法使用
    基本代码: http://ws396.vicp.net/sun_test/bll.DLL
----------------------------------------
Common
    程序集版本: 1.0.2202.30833
    Win32 版本: 无法使用
    基本代码: http://ws396.vicp.net/sun_test/Common.DLL
----------------------------------------
Da
    程序集版本: 1.0.2202.30833
    Win32 版本: 无法使用
    基本代码: http://ws396.vicp.net/sun_test/Da.DLL
----------------------------------------
System.Web.Services
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system.web.services/1.0.5000.0__b03f5f7f11d50a3a/system.web.services.dll
----------------------------------------
System.Xml
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Data
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Web
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2037
    基本代码: file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------
zpcqbfjx
    程序集版本: 0.0.0.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.2032
    基本代码: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.resources
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.573
    基本代码: file:///c:/windows/assembly/gac/system.resources/1.0.5000.0_zh-chs_b77a5c561934e089/system.resources.dll
----------------------------------------
System.Web.Services.resources
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.573
    基本代码: file:///c:/windows/assembly/gac/system.web.services.resources/1.0.5000.0_zh-chs_b03f5f7f11d50a3a/system.web.services.resources.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 1.0.5000.0
    Win32 版本: 1.1.4322.573
    基本代码: file:///c:/windows/assembly/gac/system.windows.forms.resources/1.0.5000.0_zh-chs_b77a5c561934e089/system.windows.forms.resources.dll
----------------------------------------************** JIT 调试 **************
计算机的配置文件(machine.config)的 
 system.windows.forms 节中必须设置 jitDebugging 值。
编译应用程序时还必须启用\r\n调试。\r\n\r\n例如: \r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging="true" />\r\n</configuration>\r\n\r\n启用 JIT 调试后,任何未处理的异常\r\n都将被发送到此计算机上注册的 JIT 调试器,\r\n而不是由此对话框处理。\r\n

解决方案 »

  1.   

    查查WebService的那台Web服务器是否工作正常,利用浏览器访问WebService试试看。
      

  2.   

    通过外网用浏览器访问web service 没问题
      

  3.   

    在WebService里面屏蔽一切异常并记录。那些?是显示出来就是"?"还是你马赛克处理的?
      

  4.   

    显示出来的就是"?"
    惨...
    本机设好smart client 跑都没问题
      

  5.   

    自己搞定了
    把app.config 的web service 连接字符串改成动态的就成了
    结贴