Hi,
We got the same issue with app services.
published console application as azure web job to read the data from excel. But getting the exception ''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))''
But working fine when we run manually.
We found that it's because of app service does not have the reference of ''microsoft office interop'. But we added the reference to the project from nuget packages.
Thanks
Thirumal