且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

OleDbConnection得到“外部组件引发了异常".

更新时间:2022-05-12 01:14:03

通常会在Visual Studio中的构建配置平台不正确时发生,在x86和x64两种构建配置平台中都可能发生.

This will usually occur when the build configuration platform in Visual Studio is incorrect, this can occur in both build configuration platforms, x86 and x64.

这是由于项目的构建配置平台与计算机上安装的Microsoft Access数据库引擎之间不匹配.

This is due to a mismatch between the build configuration platform of your project and the Microsoft Access Database Engine which is installed on your machine.

为了解决此错误:

  • 在Visual Studio中更改构建配置平台
  • 确保它匹配
  • 计算机上的Microsoft Access数据库引擎版本
  • 重新编译并运行项目
  • 现在应该解决运行时错误