ADOX on Windows 2008 Server x64 Error


I try to run Console Application that connects to Microsoft Access Database on the Windows 2008 server x64 and have this error:

Class not registered
   at ADOX.CatalogClass.Create(String ConnectString)

All works fine on the Windows XP x86.


ADOX COM component is only available for x86 systems. This means that it cannot be used on code that is generated for the x64 platform. A possible solution is to explicitly set the target processor in the Visual Studio project to x86.