@Sushil Agarwal , Welcome to Microsoft Q&A, based on my test, I reproduced your problem.
According to my research, Please try the following steps to access excel file without the exception.
First, Please install the software Microsoft Access Database Engine 2010 Redistributable.
Second, you could try the following connection string to open a xls file.
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path+ ";Extended Properties='Excel 12.0;HDR=NO;IMEX=1;'";
Finally, you could use the above connection string to access the excel file.
Note: Based on my further test, the above code works both in 32 bit app or 64 bit app.
Hope the above steps could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.