Tenho uma aplicação web que lê uma planilha do excel e importa os valores da células para o banco de dados automaticamente. Estou usando COM, logo é necessário na maquina o Microsoft Excel instalado. Quando compilo localmente funciona sem problemas. Porem, hospedei no azure recentemente e o erro se da justamente por não ter o Excel instalado. Como posso contornar este erro? Não entendo muito do azure, então queria saber uma forma de instalar Microsoft Office Excel.
ERRO QUE APARECE:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
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.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).