数据集,编译,发布

编程入门 行业动态 更新时间:2024-10-27 14:34:36
本文介绍了数据集,编译,发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨小伙伴们 i在c#中创建了一个应用程序并使用了实体和sql server 2008数据库,它包含大约15个数据集,在编译和创建设置后,我将它安装在另一台计算机上进行测试,我已经配置了数据库和app.config文件,它成功连接到数据库但是当它试图将数据从数据集加载到组合框时[我有binde组合框与数据集] 它显示我错误,无法登录,有时它告诉我没有那个数据集的实例!!!!!!!!!!!!!!!!!! 我应该在安装包中包含数据集吗?

hi guys i have created an app in c# and using entities and sql server 2008 database and it contains about 15 datasets, after compiling and creating setup, i installed it in another computer to test it, i have configured database and app.config file , its successfully connect to database BUT when its trying to load data from datasets to combobox [i have binde combobox with dataset] it show me error, couldnt login, and some times its show me that there is no instance of that dataset!!!!!!!!!!!!!!!!!! should i have to include datasets in setup pack?

推荐答案

最后我发现什么是错的,用向导创建的数据集,所以连接字符串是app.config中的连接字符串,所以我在表单上设置了它们加载,这解决了问题。 finally i found whats wrong, the datasets created with wizard , so the connection strings are diffrenet from the one in app.config, so i have set them on form loading and this solve the issue.

更多推荐

数据集,编译,发布

本文发布于:2023-10-12 00:22:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483260.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!