Windows Server 2008 R2 64 bit machine

To read csv file from .net I am using following code

Dim strOleDbConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & path & ";Extended Properties=""Text;HDR=" & header & ";FMT=Delimited"""

it is working fine when I am debugging inside visual studio 2008 on Windows Server 2008 R2 64 bit machine
but when I build and configure it on IIS 7.5 it is giving following error

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

I tried installing following thing on the server
 Microsoft Access Database Engine 2010 Redistributable
and
2007 Office System Driver: Data Connectivity Components

but still I am getting the same error.
shahjagatAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quizwedgeCommented:
Microsoft Jet OLEDB is not available for 64 bit. You need to change your target in Visual Studio from AnyCPU to x86. See http://stackoverflow.com/questions/13811179/where-how-can-i-download-and-install-the-microsoft-jet-oledb-4-0-for-windows-8
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
quizwedgeCommented:
@shahjagat Did my solution help?
0
shahjagatAuthor Commented:
yes...it worked out..thanks
0
quizwedgeCommented:
Great! Go ahead and accept the answer when you get a chance, please. Thanks.
0
quizwedgeCommented:
Just out of curiosity, if my answer worked, why'd I get a C?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.