使用microsoft数据库时遇到问题 [英] having problem when using microsoft database

查看:108
本文介绍了使用microsoft数据库时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



使用MS-Access数据库时出现以下错误。



Hello All,

I am getting the following error while using MS-Access database.

System.InvalidOperationException: The ''Microsoft.ACE.OLEDB.12.0'' provider is not registered on the local machine.





当我在我的本地机器上使用它时它成功运行但当我把它放在网上时......它显示上述错误。



我的连接字符串是: -





when i am using it on my local machine it runs successfully but when i am putting it online....it shows the above error.

my connection string is:-

<add name="ConStr" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=''F:\Web\new prjct\Db\green.mdb'';" providerName="System.Data.OleDb"/>





我无法理解这是连接字符串的问题。请提出你的可以解决的建议。





谢谢



i cant understand that is it the problem with connection string. Kindly give your valyable suggestions to solve it.


Thanks

推荐答案

请参见此处 [ ^ ],快速通过Google找到答案。
See here[^], an answer quickly found via Google.


您好,



您可能需要在该计算机上安装MDAC 2010。您可以从以下网址下载

http://www.microsoft.com/en-us/download/details.aspx?id=13255 [ ^ ]



请让我知道这是否有效!
Hi,

You might have to install the MDAC 2010 on that machine. You can download that from the below URL
http://www.microsoft.com/en-us/download/details.aspx?id=13255[^]

Please let me know if that works!


这篇关于使用microsoft数据库时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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