以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  用户管理出现了问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=128371)

--  作者:zhouhai39
--  发布时间:2018/12/4 21:17:00
--  用户管理出现了问题
我在进行用户管理时用外部表,根据帮助说明建立了外部表后,在进行分组定义时,出现了以下错误,什么原因?该怎办?


************* 异常文本 **************
System.InvalidCastException: 从类型“DBNull”到类型“Integer”的转换无效。
   在 Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value)
   在 Foxtable.OO0o0__o.OoO0_0__(Object A_0, EventArgs A_1)
   在 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.8800 (QFE.050727-8800)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Foxtable
    程序集版本: 2018.10.9.1
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
Foxtable.Lib
    程序集版本: 2018.2.18.1
    Win32 版本: 2018.02.18.1
    基本代码: file:///D:/foxtable/eval/Foxtable.Lib.DLL
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8791 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.VisualBasic
    程序集版本: 8.0.0.0
    Win32 版本: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Data
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8762 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8773 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8766 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
C1.Win.C1Ribbon.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///D:/foxtable/eval/C1.Win.C1Ribbon.2.DLL
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8800 (QFE.050727-8800)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Interop.JinDI_SmsComLib
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///D:/foxtable/eval/Interop.JinDI_SmsComLib.DLL
----------------------------------------
C1.Win.C1Command.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///D:/foxtable/eval/C1.Win.C1Command.2.DLL
----------------------------------------
System.Transactions
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Design
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Accessibility
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
C1.Win.C1FlexGrid.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///D:/foxtable/eval/C1.Win.C1FlexGrid.2.DLL
----------------------------------------
Microsoft.VisualBasic.resources
    程序集版本: 8.0.0.0
    Win32 版本: 8.0.50727.5420 (Win7SP1.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_zh-CHS_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
Foxtable.Blank
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
Interop.MSScriptControl
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///D:/foxtable/eval/Interop.MSScriptControl.DLL
----------------------------------------
C1.Win.C1Input.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///D:/foxtable/eval/C1.Win.C1Input.2.DLL
----------------------------------------
Foxtable.Ribbon
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
System.Web
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8762 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Foxtable.Blank
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
Foxtable.Blank
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
高中学生资助管理系统.DataTable.ALRJ3in6hoZICiZ6i
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///D:/foxtable/eval/foxtable.exe
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如: 

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。


图片点击可在新窗口打开查看
图片点击可在新窗口打开查看

--  作者:有点蓝
--  发布时间:2018/12/4 21:38:00
--  
窗口afterload事件写了什么代码
--  作者:zhouhai39
--  发布时间:2018/12/4 21:42:00
--  
窗口afterload事件没有写代码
[此贴子已经被作者于2018/12/4 21:42:14编辑过]

--  作者:有点蓝
--  发布时间:2018/12/4 21:45:00
--  
上传具体实例测试
--  作者:zhouhai39
--  发布时间:2018/12/4 21:47:00
--  
顺便请教foxtable本身的用户表Users在哪可以找到?

另外,在SQL sever上直接建立,在foxtable中用“用户数据表”却提示说用户表不符合规范
[此贴子已经被作者于2018/12/4 21:59:35编辑过]

--  作者:有点蓝
--  发布时间:2018/12/4 21:52:00
--  
内置的,不公开
--  作者:zhouhai39
--  发布时间:2018/12/4 22:06:00
--  
我估计是用户表的定义的列不够,只有“姓名、类型、密码”这三列,没有列供放置“组”了
--  作者:有点蓝
--  发布时间:2018/12/4 22:11:00
--  
不可能。
--  作者:zhouhai39
--  发布时间:2018/12/4 22:18:00
--  
图片点击可在新窗口打开查看图片点击可在新窗口打开查看

--  作者:zhouhai39
--  发布时间:2018/12/4 22:20:00
--  
已经可以了,我发现users有空行,我把空行删除,就可以输入了