Click here to Skip to main content
15,911,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i am trying to read excel file using c#. my connection string is
C#
string con = @"Provider=Microsoft.Jet.OLEDB.12.0;Data Source="+ AppDomain.CurrentDomain.BaseDirectory + "CIS DataTemplate.xlsx;Extended Properties='Excel 12.0;HDR=Yes;'";


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


tried to cheanging configuration mangaer platform is from cpu to x86. it is not working.
i am using windows 7 64 bit operating system.

Can you help me to resolve this issue?



Thanks in advance.
Posted
Updated 4-Nov-15 8:09am
v2
Comments
Gyaneswar kumar 4-Nov-15 3:48am    
Application has been hosted on IIS?if yes then change 'Enable 32 bit application'=true under the respective application pool...:-)

1 solution

Hi,

No need to do anything but please do the following stuff as follows:-

Application has been hosted on IIS?if yes then change 'Enable 32 bit application'=true under the respective application pool.

I am sure this will work as recently the same problem faced by me as well.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900