在没有MS访问权限的PC上安装C#setup时出错 [英] I have error while installing C# setup on PC that don't have MS access

查看:74
本文介绍了在没有MS访问权限的PC上安装C#setup时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我使用MS访问数据库,我创建了该项目的设置(.net framework 3.5),当我尝试将它安装在没有MS访问数据库的机器上时,它会在安装时出错Project has遇到了问题,需要关闭。是否有任何解决方案或必须在该PC上安装MS访问。



我尝试过:



我试图在没有MS访问权限的PC上安装设置但在具有MS访问权限的PC上运行.net framework 3.5

In my project i used MS access database and I created setup of that project(.net framework 3.5) when i tried to install it on machine which don't MS access database then it will give error while installation that "Project has encountered a problem and needs to close.". Is there any solution for this or is compulsory to install MS access on that PC.

What I have tried:

I tried to install setup on pc that don't have MS access but working on PC that have MS access and .net framework 3.5

推荐答案

大概 - 记住我们看不到你的屏幕,访问你的硬盘或读你的想法所以我们不知道你的代码是什么样的 - 你通过Interop访问Access。

如果你这样做,应用程序运行的PC必须安装Access才能工作。



不要这样做。使用OleDb和JET / Ace数据库引擎代替Access数据库,并且可以随应用程序一起安装所需的DLL程序集。
Presumably - and remember we can't see your screen, access your HDD, or read your mind so we have no idea what your code looks like - you are accessing Access via Interop.
If you do that, the PC the app runs on must have Access installed in order to work.

Don't do it. Use OleDb and the JET / Ace DB engine to work with Access databases instead, and the required DLL assemblies can be installed with your app.


这篇关于在没有MS访问权限的PC上安装C#setup时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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