Microsoft.Jet.OLEDB.4.0 error on Azure Cloud Service

前端 未结 1 576
耶瑟儿~
耶瑟儿~ 2021-01-22 13:54

My requirement is to upload excel file to the folder which is on website root and then read this file\'s data into the datatable.

This is working fine on my existing hos

相关标签:
1条回答
  • 2021-01-22 14:21

    This is probably caused because your application is running on 64 bits mode. According to Microsoft, The Microsoft OLE DB Provider for Jet and the Microsoft Access ODBC driver are available in 32-bit versions only.

    As described in How to get a x64 version of Jet?:

    The Microsoft Jet Database Engine 4.0 components entered a state of functional deprecation and sustained engineering, and have not received feature level enhancements since becoming a part of Microsoft Windows in Windows 2000.

    One alternative is to use a startup task in your cloud service to deploy the Microsoft Access Database Engine 2010 Redistributable. You'll have to change your connection string to the formats supported by this new driver.

    Another approach, which I have used with success, would be to use a library such as ExcelDataReader to read the spreadsheet data.

    0 讨论(0)
提交回复
热议问题