After publishing my asp.net web application on my hosting, I for this problem:
Error: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on
the local machine.
This is my connection string:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Server.MapPath(fileName) + ";Extended Properties=Excel 12.0"
After searching on Google, I found that my hosting server should install: Microsoft office Access database engine 2007 @ http://www.microsoft.com/download/en/details.aspx?id=23734
I contact them but they said it is not allowed to install that component on their server…
Is there a way to read excel 2007 file on my server without installing that component?
Thanks in advance.
You can read OpenXML format Excel documents using OpenXML SDK. It’s much easier to use it via ClosedXML library.