System.ArgumentException: 不支持关键字provider: “data soure”。

System.ArgumentException: 无法绑定到 DataSource 的属性或列 User。 参数名: dataMember_百度知道
System.ArgumentException: 无法绑定到 DataSource 的属性或列 User。 参数名: dataMember
我在点击添加,编辑后弹出图片这个,点击确定后就正常弹出,编辑了之后也能正常修改
大哥,哪个帮我我提高悬赏行嘛,提到200,再高还有的商量
我有更好的答案
已经解决了问题,感谢灬星辰丶aile, hlomes0083。谢谢你们的提示和帮助。真想贴图上来给大家看一下运行成功的界面。我将代码更改如下。namespace Hospital_MIS{public partial class Frm_payment : Form{databaseoperate myoperate = new databaseoperate();private string sqlstr = &select patientname as 病人姓名 from appointment&;private string mytable = &appointment&;BindingSource mybdsource = new BindingSource();public Frm_payment(){InitializeComponent();}private void Frm_payment_Load(object sender, EventArgs e){DataSet view1ds = myoperate.getds(sqlstr, mytable);mybdsource.DataSource = view1ds.Tables[0];dataGridView1.DataSource = txt_patientname.DataBindings.Add(&text&, mybdsource, &病人姓名&);}}在此鄙视一下30天学通 C#项目案例开发 写的垃圾书。错误百出,纯属扯淡。
大兄弟真是难为你了,还麻烦你去复制一次,这种我都看过了,我的情况和他不同,我是客户端的
采纳率:92%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。【急】asp.net连接数据库 不支持关键字: “.;initial catalog”_百度知道
【急】asp.net连接数据库 不支持关键字: “.;initial catalog”
rt异常详细信息: System.ArgumentException: 不支持关键字: “.;initial catalog”。把“.”改了也不行
我有更好的答案
关键字用中括号括起来,如[关键字],首先你得确定出错的是不是这个‘.’
采纳率:30%
你把“.”改成什么了,你可以改成本机字符串,甚至改成本机的IP都成
本回答被网友采纳
为您推荐:
其他类似问题
您可能关注的内容
连接数据库的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。订阅你的位置: >
> 【已解决】运行KMSELDI.exe程序出现:System.ArgumentException字体Calibri不支持样式Regular
【背景】期间,出现:看到详细的异常信息是:“有关调用实时(JIT)调试而不是此对话框的详细信息,请参见此消息的结尾。************** 异常文本 **************System.ArgumentException: 字体“Calibri”不支持样式“Regular”。   在 System.Drawing.Font.CreateNativeFont()   在 System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)   在 System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)   在 KMSELDI.FrmShowMessage.?()   在 KMSELDI.ActivateMetroForm.?(Object A_0, EventArgs A_1)   在 System.EventHandler.Invoke(Object sender, EventArgs e)   在 System.Windows.Forms.Form.OnLoad(EventArgs e)   在 DevComponents.DotNetBar.RibbonForm.OnLoad(EventArgs e)   在 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.Form.WmShowWindow(Message& m)   在 System.Windows.Forms.Form.WndProc(Message& m)   在 DevComponents.DotNetBar.RibbonForm.WndProc(Message& m)   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** 已加载的程序集 **************mscorlib    程序集版本: 4.0.0.0    Win32 版本: 4.0. (RTMGDR.0)    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll—————————————-KMSELDI    程序集版本: 36.0.0.4    Win32 版本: 36.0.0.4    基本代码: file:///C:/Program%20Files/KMSpico/KMSELDI.exe—————————————-Microsoft.VisualBasic    程序集版本: 10.0.0.0    Win32 版本: 10.0.30319.1 built by: RTMRel    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll—————————————-System    程序集版本: 4.0.0.0    Win32 版本: 4.0. built by: RTMGDR    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c/System.dll—————————————-System.Core    程序集版本: 4.0.0.0    Win32 版本: 4.0. built by: RTMGDR    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c/System.Core.dll—————————————-System.Windows.Forms    程序集版本: 4.0.0.0    Win32 版本: 4.0. built by: RTMGDR    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c/System.Windows.Forms.dll—————————————-System.Drawing    程序集版本: 4.0.0.0    Win32 版本: 4.0. built by: RTMGDR    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll—————————————-System.Runtime.Remoting    程序集版本: 4.0.0.0    Win32 版本: 4.0. (RTMGDR.0)    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c/System.Runtime.Remoting.dll—————————————-DevComponents.DotNetBar2    程序集版本: 12.1.0.0    Win32 版本: 12.1.0.0    基本代码: file:///C:/Program%20Files/KMSpico/DevComponents.DotNetBar2.DLL—————————————-Accessibility    程序集版本: 4.0.0.0    Win32 版本: 4.0.30319.1 built by: RTMRel    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll—————————————-System.Windows.Forms.resources    程序集版本: 4.0.0.0    Win32 版本: 4.0.30319.1 built by: RTMRel    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c/System.Windows.Forms.resources.dll—————————————-System.Xml    程序集版本: 4.0.0.0    Win32 版本: 4.0. built by: RTMGDR    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c/System.Xml.dll—————————————-System.Configuration    程序集版本: 4.0.0.0    Win32 版本: 4.0. (RTMGDR.0)    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll—————————————-System.Data    程序集版本: 4.0.0.0    Win32 版本: 4.0. (RTMGDR.0)    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c/System.Data.dll—————————————-System.Management    程序集版本: 4.0.0.0    Win32 版本: 4.0.30319.1 (RTMRel.0)    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll—————————————-mscorlib.resources    程序集版本: 4.0.0.0    Win32 版本: 4.0.30319.1 (RTMRel.0)    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c/mscorlib.resources.dll—————————————-Microsoft.VisualBasic.resources    程序集版本: 10.0.0.0    Win32 版本: 10.0.30319.1 built by: RTMRel    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/v4.0_10.0.0.0_zh-Hans_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll—————————————-System.Drawing.resources    程序集版本: 4.0.0.0    Win32 版本: 4.0.30319.1 built by: RTMRel    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.resources/v4.0_4.0.0.0_zh-Hans_b03f5f7f11d50a3a/System.Drawing.resources.dll—————————————-************** JIT 调试 **************要启用实时(JIT)调试,该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置jitDebugging 值。编译应用程序时还必须启用调试。例如:&configuration&    &system.windows.forms jitDebugging=&true& /&&/configuration&启用 JIT 调试后,任何未经处理的异常都将被发送到在此计算机上注册的 JIT 调试器,而不是由此对话框处理。” 【解决过程】1.点击 继续:但是无法点击。。。2.搜:System.ArgumentException: 字体“Calibri”不支持样式“Regular”。参考:-& 下载后,改名Calibri为Calibri.zip 3.解压得到:剪切到:C:\Windows\Fonts即可:结果还无法直接Ctrl+V 4.右键,粘贴:重新去运行程序:KMSELDI.exe结果:就可以正常运行了:  【总结】运行程序出现:字体“Calibri”不支持样式“Regular”。的错误提示,后,去安装对应的Calibri字体即可。去我刚刚整理好的,已去上传到:Calibri字体,解决System.ArgumentException字体Calibri不支持样式Regular – 下载频道 – CSDN.NET的字体,下载后,拷贝粘贴到:C:\Windows\Fonts中即可。转载请注明: & 与本文相关的文章
17 queries in 0.234 seconds, using 10.31MB memorySystem.ArgumentException: 不支持关键字: “integratedsecurity”。_百度知道
System.ArgumentException: 不支持关键字: “integratedsecurity”。
异常详细信息: System.ArgumentException: 不支持关键字: “integratedsecurity”。
public static DataTable ExecuteDataTable(string sql, params SqlParameter[] parameters)
我有更好的答案
你的类中缺少必要的jar(jar版本问题)包就会报你说的这个错误,你可以找到integratedsecurity确认下具体的问题,你现在粘贴的代码和你的这个就没啥大关系呢
采纳率:82%
来自团队:
为您推荐:
其他类似问题
security的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。用C#做登录注册程序界面,出现异常未处理 不支持关键字: “data source”。_百度知道
用C#做登录注册程序界面,出现异常未处理 不支持关键字: “data source”。
具体的异常:System.ArgumentException
Message=不支持关键字: “data source”。
由于完整代码较长,超出字数限制,请移步http://wenku.baidu.com/link?url=Q_MHhHi8L3jXGB92HeyqJwIfOSfBVLkaAXcgyGNm8v8N4qJOWv9db2FsKAPvdSKQxaDZaz...
我有更好的答案
试试data source=(local);
采纳率:39%
你能不照抄不?bool flagR//定义标志位,确认用户注册
string strConnect =
&Data Source=YZ\\SQLEXPRESS;Initial Catalog=MyData1;Persist Security Info=TUser ID= YZ;Password=&;
//连接数据库字符串中的YZ换成.试下,当然前提是你使用的是简版数据库,否则就是直接.
还是不行.我想问一下后面的MyData1是提前在SQL里建好的吗?
废话,数据库不先建就连接,我也是醉了,采纳哪个追问哪个,撤
本回答被网友采纳
字符串有问题,把你连接字符串发出来看看
bool flagR//定义标志位,确认用户注册
string strConnect =
&Data Source=YZ\\SQLEXPRESS;Initial Catalog=MyData1;Persist Security Info=TUser ID= YZ;Password=&;
//连接数据库字符串
把这个YZ\\SQLEXPRESS换成一个点看看
不行,还是那个错误.本想采纳你的,结果按错了采纳了另一个人的,晕死.
方便远程看看?你qq 多少
谢啦,我改用Access了,比较简单,已经解决了。
为您推荐:
其他类似问题
程序界面的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 datagrip 关键字大写 的文章

 

随机推荐