There is a discussion on this Diagnosing an OLEDB exception when Quering Excel 2010
But my question is, if we are not allowed to install ACE components in IIS servers where website is hosted; how we can avoid this error? Is there any other way to Import excel to SQL database?
I'm using below connectionstring and works perfectly fine in local but not in IIS server after deployment.
excelConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path +
";Extended Properties=\"HDR=YES;\";Jet OLEDB:Engine Type=37";
Error :System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.12.0' provider is not registered on the local machine.