I am working in Windows Application. I am reading a value from Excel and updating into the database. My code is
string Con_Str = \"Provider=Microsoft.ACE.OL
You are using Microsoft.ACE.OLEDB.12.0; (ADE for short). This means that you need to install the appropriate bits on your target machine. This is complicated by the Architecture choosen when you build your application.
You build for AnyCPU:
Install ADE 32bit on 32bit target machine
Install ADE 64bit on 64bit target machine
You build for x86
Install ADE 32bit on 32bit or 64bit target machine.
As you can see, the easiest way to get out is to compile your application for x86 architecture.