可能是客户端IE版本不高datagrid所在页面是utf-8, 客户端浏览器默认是 "简体中文"

解决方案 »

  1.   

    我是做的winform,IE我也升级了!
      

  2.   

    是不是.net framework的版本不对?
      

  3.   

    为什么会这个样呢,只有datagrid的不对,其它的都还没有什么问题!
      

  4.   

    从你的出错情况“对像引用未设置或包含非法字符”来看,有可能panyee说的是对的。不过一般来讲可能是SQL Server验证出错。如果你选用的是windows集成验证,你必须在测试机上添加和开发机上一样的用户名和密码。如果是SQL Server账号验证,这不需要这样做。
      

  5.   

    比如说你的机器上的framwork是中文版的
    目标机器上的是英文版的
    就有可能产生不可预知的错误。
    我遇到过。
    至于你说的情况还真是奇怪
      

  6.   

    有关调用实时 (JIT) 调试而不是此对话框的详细信息,
    请参阅此消息的结尾。************** 异常文本 **************
    System.ArgumentException: 路径中具有非法字符。
       at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
       at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
       at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
       at System.AppDomainSetup.get_ConfigurationFile()
       at System.Configuration.DefaultConfigurationSystem.get_AppConfigPath()
       at System.Configuration.DefaultConfigurationSystem.System.Configuration.IConfigurationSystem.Init()
       at System.Configuration.ConfigurationSettings.SetConfigurationSystem(IConfigurationSystem configSystem)
       at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
       at System.Diagnostics.DiagnosticsConfiguration.GetConfigTable()
       at System.Diagnostics.DiagnosticsConfiguration.Initialize()
       at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
       at System.Diagnostics.Switch.Initialize()
       at System.Diagnostics.Switch.get_SwitchSetting()
       at System.Diagnostics.TraceSwitch.get_TraceVerbose()
       at System.Windows.Forms.DataGridRelationshipRow.Paint(Graphics g, Rectangle bounds, Rectangle trueRowBounds, Int32 firstVisibleColumn, Int32 numVisibleColumns, Boolean alignToRight)
       at System.Windows.Forms.DataGrid.PaintRows(Graphics g, Rectangle& boundingRect)
       at System.Windows.Forms.DataGrid.PaintGrid(Graphics g, Rectangle gridBounds)
       at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
       at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       at System.Windows.Forms.Control.WmPaint(Message& m)
       at System.Windows.Forms.Control.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.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
    ----------------------------------------
    xxxxxx
        程序集版本:1.0.1304.28166
        Win32 版本:1.0.1304.28166
        基本代码:file:///C:/PROGRAM%20FILES/OCE/客服系统/KEFU.EXE
    ----------------------------------------
    System.Windows.Forms
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
    ----------------------------------------
    System
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
    ----------------------------------------
    System.Data
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system.data/1.0.3300.0__b77a5c561934e089/system.data.dll
    ----------------------------------------
    System.Xml
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.dll
    ----------------------------------------
    System.Drawing
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
    ----------------------------------------
    System.EnterpriseServices
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3705.0
        基本代码:file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.3300.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
    ----------------------------------------
    mscorlib.resources
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3300.0
        基本代码:file:///c:/windows/assembly/gac/mscorlib.resources/1.0.3300.0_zh-chs_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
        程序集版本:1.0.3300.0
        Win32 版本:1.0.3300.0
        基本代码:file:///c:/windows/assembly/gac/system.windows.forms.resources/1.0.3300.0_zh-chs_b77a5c561934e089/system.windows.forms.resources.dll
    ----------------------------------------************** JIT 调试 **************
    若要启用实时 (JIT) 调试,此
    应用程序或计算机的配置文件 (machine.config) 的 
     system.windows.forms 节中必须设置 jitDebugging 值。
    编译应用程序时还必须启用
    调试。例如:<configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>启用 JIT 调试后,任何未处理的异常
    将被发送到此计算机上注册的 JIT 调试器,
    而不是由此对话框处理。