Microsoft.ACE.OLEDB.12.0报错解决方法

引用@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + sourcefile + ";";

服务器端报这个错误的时候:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. (未注册Microsoft.ACE.OLEDB.12.0提供程序)

解决方法:OLEDB不支持64位,服务器端要装32位的而不要装64位的 https://www.microsoft.com/en-us/download/confirmation.aspx?id=13255

posted @ 2021-11-29 10:57  德平Zeng  阅读(4244)  评论(0编辑  收藏  举报