如何发布具有ACCESS 2010数据库的项目 [英] how to publish project that have ACCESS 2010 database
问题描述
大家好
我们设计会计软件(N层应用程序,C#.net,ACCESS 2010),我们想要
在网上发布我们的项目。在测试步骤中,我们在许多PC中安装软件(我们使用Visual Studio创建设置
)我们面临以下错误:
注意:我们在X32配置中发布我们的项目。
安装在拥有office 2010的电脑上(X64),我们面临以下错误:
无法识别的数据库格式x.accdb
我们测试的解决方案并且有问题:
安装两个包:
1)AccessDatabaseEngine(Data_conectivity2007)...在网络中找到的解决方案。
site:< a href =http://www.microsoft.com/en-us/download/details.aspx?id=23734> http://www.microsoft.com/en-us/download/details.aspx?id = 23734 [ ^ ]
2)AccessDatabaseEngine 2010.
最后我们强制删除office包并安装上面的两个包和应用程序运行cor直接。(这是问题)。
但是在任何拥有office 2007(X32或X64)或 office 2010(X32)而不是X64的电脑中/ b>安装上面两个包,应用程序运行正常。
问题:
有没有最好的解决方案来了解PC中安装的版本办公室?
我们如何知道目标系统的截止日期?例如(.net框架工作4或以上两个包)和安装程序自动安装该包。
非常感谢。
Hi all
we design accounting software (N-layer application , C#.net , ACCESS 2010), We wanna
publish our project in web. In the test step ,we install software(We create setup
using Visual studio) in the many PC we face the following error :
Attention: we release our project in X32 Configuration.
When Install in the pc that have office 2010 (X64) , we face following error :
Unrecognized Database Format x.accdb
solution that we test and have problem :
install two package:
1) AccessDatabaseEngine(Data_conectivity2007)... solution that find in web.
site:http://www.microsoft.com/en-us/download/details.aspx?id=23734[^]
2)AccessDatabaseEngine 2010.
in last we force to delete office package and install two above package and application run correctly.(that it is problem).
but in any pc that have office 2007 (X32 or X64) or office 2010(X32) not X64 with install two above package, application run correctly.
Question:
Is there best solution to know what is version office that install in PC ??
how We know what's deadline in target system ? for example (.net frame work 4 or above two package ) and setup automatically install that package.
thanks a lot.
推荐答案
MS Office不包含在每个版本的MS Office中。我建议每次安装应用程序时至少安装AccessDatabaseEngine 2010。项目应使用AnyCPU选项构建。
MS Access is not included each version of MS Office. I'd suggest at least to install AccessDatabaseEngine 2010 every time when you install your application. Project should be built with "AnyCPU" option.
这篇关于如何发布具有ACCESS 2010数据库的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!