PDA

View Full Version : خطا اتصال به بانک access



peymanjon
چهارشنبه 27 بهمن 1389, 17:53 عصر
سلام من تا حالا با access کار نکرده بودم ، یک برنامه رو سیستمی که office 2007 داشت نوشتم و جواب گرفتم ، الان که رو سیستم خودم که access 2010 دارم می خوام از طریق VS2008 و زبان سی شارپ به بانک access وصل بشم این پیغام را میده:

The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
باید چی کار کنم؟

peymanjon
چهارشنبه 27 بهمن 1389, 19:54 عصر
فهمیدم:
برای این خطا باید این کار را کرد:
متن خطا

'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine



Hello,

Are you running your application on x64 or x86 version of Windows?
Also are you the developer that wrote the code for OCR.Form1 class?

If so, I would suggest changing the Platform Target build option for your application to target x86 rather than Any CPU. Currently it appears that you are loading some assemblies out of the x64 GAC which would indicate that you are running x64 windows and Microsoft.Jet.OLEDB.4.0 provider is not 64-bit compatible.

To resolve this issue open the project in Visual Studio then:

1. From the solution explorer right-click your project then click Properties
2. Click the Build tab
3. Change Platform target from: Any CPU to x86
4. Re-build your solution


وبرای این خطا

Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine


باید این فایل را از آدرس زیر نصب کنید تا مشکلتون حل بشه:
http://www.microsoft.com/downloads/en/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en&WT.mc_id=soc-n-[TR]-loc-[Services]-[farukc]

موفق باشید