为什么VB.NET Jet 4.0应用程序崩溃,如果Office未安装? [英] Why does VB.NET Jet 4.0 app crash if Office not installed?

查看:130
本文介绍了为什么VB.NET Jet 4.0应用程序崩溃,如果Office未安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个VB2008项目,引用两个Access数据库使用Provider = Microsoft.Jet.OLEDB.4.0;

I'm working on a VB2008 project that references two Access databases using Provider=Microsoft.Jet.OLEDB.4.0;

似乎如果用户不他们的机器上有MSOffice,程序崩溃与Vista和Win7启动时XXX停止工作。

It would seem if the user does not have MSOffice on their machine, the program crashes with a "XXX stopped working" on startup on Vista and Win7.

我认为Windows有XP和以上有Jet功能建立在?有人知道为什么这种情况发生吗?

I thought that Windows had XP and above had Jet functionality built in? Does anyone know why this is happening? What are the correct project/publish/prerequisites required please?

推荐答案

x64架构绝对没有Jet支持。所以程序将运行时错误,如果你运行在x64 proc和你的应用程序正在编译到AnyCPU。

There is absolutely NO Jet support for x64 architectures. So the program will runtime error if you are running on an x64 proc and your application is compiling to AnyCPU.

将应用程序的编译目标明确地更改为x86,并且您的问题应该消失...如果我正确地识别了问题。如果失败的机器运行x86操作系统,那么你将不得不寻找另一个解决方案。但是如果失败的机器运行的是x64操作系统,那么我保证这是问题。

Change the compile target of your application to x86 explicitly and your problems should go away...if I have correctly ID'ed the issue that is. If the failing machines are running x86 OSes then you'll have to look for another solution. But if the failing machines are running x64 OSes then I guarantee this is the problem.

Seth

这篇关于为什么VB.NET Jet 4.0应用程序崩溃,如果Office未安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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