C#应用程序无法在另一个系统中运行 [英] C# application not working in another system

查看:74
本文介绍了C#应用程序无法在另一个系统中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中创建了一个带有数据库(.mdb文件)的应用程序。但是当我在另一个系统中安装它时它无法工作。它显示数据库错误。

请帮我解决如何解决这个问题

I have created an application in C# with database(.mdb file ).But it is not working when i install it in another system.It showing Database error.
please help me how to solve this problem

推荐答案

从这一点开始我们就不能准确了,但是既然你提到了一个MDB文件,你应该从检查开始做一些事情:

1)安装应用程序时是否安装了MDB文件?

2)您是否将文件安装在应用程序新实例可访问的位置? />
3)您是否告诉应用程序文件的确切位置?

4)文件是否在合理的位置?该应用程序是否有权修改文件夹内容?

5)您是否尝试使用多个用户访问同一文件?如果是这样,那么期待一个痛苦的世界......
We can't be precise from that little, but the since you mention an MDB file there are a couple of things you should start by checking:
1) Did you install the MDB file when you installed the app?
2) Did you install the file in a location accessible to the new instance of the application?
3) Did you tell the application exactly where the file was?
4) Is the file in a sensible place? Does the App have permission to modify the folder contents?
5) Are you trying to access the same file with more than one user? If so, then expect a world of pain...


一旦检查数据库连接字符串。
once check database connection string.


这篇关于C#应用程序无法在另一个系统中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆