When I am debugging a C#.Net 2008 windows application and click on the
'next' button, I am getting the following error:
'An unexpected error has occurred. The 'Microsoft.jet.oledb.4.0'provider is
not registered on the local machine'.
I think that I may need to change some setting I have in the visual studio.net
2008 professional edition to solve this problem.
I am working on an workstation that is 64 bits, XP operating system. When the click event has occurred, I have just attached an excel 2003 spreadsheet to a file in the general directory structure prior to clicking on the 'next' button.
This application runs fine in production, this error just occurs in debug mode.
Thus can you tell me what I could change to fix my problem?
Loading
Sam HobbsPosted Jul 2, 2010, 8:02 PM
dcPosted Jul 6, 2010, 10:55 AM
posted 1337 posts
since Sep 07, 2009
from
Perhaps you already changed the target but we often forget to change the configuartion to All Configurations.
Roy SPosted Jul 2, 2010, 7:20 AM
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/45aa44dd-0e6f-42e5-a9d6-9be5c5c8fcd1
If it's the same problem that you're having, all you need to do is change the platform target to x86 (32 bit). This is located in the build section of your project's properties.