OleDbConnection gets “External component has thrown an exception.”

后端 未结 6 1828
予麋鹿
予麋鹿 2020-12-20 11:44

I\' m using a Windows Forms application to export data to excel.

Application is built both x64 and x86.

So both version of Microsoft Access Databse Engine mu

6条回答
  •  太阳男子
    2020-12-20 12:37

    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.

    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.

    In order to resolve this error:

    • Change the build configuration platform in Visual Studio
    • make sure it matches
    • the Microsoft Access Database Engine version on your machine
    • Recompile and run your project
    • The run time error should now be resolved

提交回复
热议问题