c#应用程序无法在其他系统中运行 [英] c# application not working in other System

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

问题描述

我在C#中开发了一个单独的Windows独立应用程序,并且还为数据库添加了一个.mdb文件。

当我将我的应用程序部署到另一个系统时它无法工作,它显示数据库错误。

善意any1通过提供示例应用程序来帮助我。如何设置数据库配置以部署应用程序以在任何cpu中工作。

解决方案

您好Karthik,

您是否在代码中引用了数据库mdb文件作为源代码?如果是,那么请让我确切知道你做了什么?


提供的信息很少,只有一些猜测是可能的:

- 你没有部署另一个系统上的数据库

- 您将数据库文件放入程序的程序文件夹中 - 用户没有写入该文件夹的权限

- 你没有设置OleDB驱动程序

- 您不关心32位/ 64位问题并设置错误版本的OleDB驱动程序

以及更多可能性......

i have developed an windows stand alone application in C#,and also add an .mdb file for database .
when i deploy my application to another system it is not working, it showing database error.
kindly any1 help me by giving sample application .how to set configuration of database to deploy the application to work in any cpu.

解决方案

Hi Karthik,
Have you reference your database mdb files as source in your code? If yes Then please let me know exactly what you have done?


With that little information provided, just some guesses are possible:
- you did not deploy the database on the other system
- you placed the database file into the program folder of your program - and the user has no priviledges for writing into that folder
- you did not set up the OleDB drivers
- you did not care for 32bit/64bit issues and set up the wrong version of the OleDB drivers
and many more possibilities...


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

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