Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my ASP website I use 'Microsoft.ACE.OLEDB.12.0' as the provider to get data from .xlsx Excel sheet.
Site is hosted in two simile 64bit OS servers.

The two servers are alike and in below path of the both server,the same versions of 'ACEOLEDB.DLL' is found

C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\ACEOLEDB.DLL

But the issue is when I added new rows to the same .xlsx Excel sheet then one server hosted site doesn't read those new rows added while the other server hosted same site is reading the excel sheet as expected (i.e. with the added new rows)

It is obvious those two servers might be having different component to have different impact on same coding (site) reading same Excel file differently.

Can anyone please help me to track what is the different.
Posted

Excel is not a multi-user database format/file/engine so you should not expect it to use it in such a manor.

Also you should not use Office Excel automation on ASP.net sites since it will not scale and runs EXCEL.EXE in the background try using a component like : http://epplus.codeplex.com/[^]
 
Share this answer
 
Using Open XML SDK 2.0 I was able to solve my issue.
 
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