hi my Dear Friends :
in have an Excel File Named (a.xlsx) in A Folder Named (ExcelFiles).
the ExcelFiles Folder Is located in the root Of my project.
so my connection string for getting excel file data is like this :
<add name="xlsx" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=aaa\ExcelFiles\a.xlsx;Extended Properties=Excel 12.0"/>
aaa = My Project Name
with this connection string every thing is ok in local , but after upload web site i have an error.
where is the problem??
is this path true -> ~/ExcelFiles/a.xlsx or not
can u fix this path 4 me....
after solving the path problem the error is like this :
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
how can i do with this error?
thanks in future advance
best regards