在 ftp 服务器上运行网站时出错
我有一个带有 msaccess 数据库和 c# 的 asp.net 网站。该网站通常在 IIS 服务器上运行,但是当我将其上传到 ftp 服务器时,它会显示以下错误
“'Microsoft.ACE.OLEDB.12.0' 提供程序未注册”在本地机器上。”
我应该怎么做才能解决这个问题
I have a asp.net Website with msaccess database and c# .The Site run on IIS server Normaly but when i upload it to the ftp server then it display the folowing error
"The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine."
What should i do to resolve the issue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下不安装此驱动程序,我认为您的服务提供商不会专门为您安装它。
您最好使用 mdb 文件而不是 accdb 文件,并使用 Microsoft.Jet.OleDb.4.0 驱动程序。
您可以使用以下教程进一步阅读
AccessDataSource、SqlDataSource 以及连接到 ASP.NET 中的 Access 数据库
This driver is not installed by default and i don't think your service provider is gonna install it specially for you.
You better use mdb files instead of accdb files, and use the Microsoft.Jet.OleDb.4.0 driver instead.
You can use the following tutorial for further reading
AccessDataSource, SqlDataSource and connecting to Access databases in ASP.NET
最简单的方法是要求托管提供商在网络服务器上安装 Microsoft Access 引擎。
http://www.microsoft.com/download/en/details.aspx ?id=13255
我不确定您是否可以使用 webdeploy 来部署它。这将使您可以自己部署和安装它。
The easiest thing to do would be ask the hosting provider to install the Microsoft Access engine on the webserver.
http://www.microsoft.com/download/en/details.aspx?id=13255
I'm not sure if you could deploy it with webdeploy. That would enable that you can deploy and install it yourself.