none
failed due to the following error: 80040154 Class not registered

    Question

  • I am referencing Microsoft.Office.Interop.Excel in my VS 2010  mvc for asp.net project and it works fine on my dev box, however once I deploy project on the server I am getting this error: 

    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)).

    I have VS2010 tool for office runtime installed on the server. The code simply allows user to exports the existing objects into an excel spreadsheet. Any suggestions to why this is not working on the server/ The server is windows 2008 SR2 standard with IIS 6. 


    dot net developer


    • Edited by gb__ Friday, July 27, 2012 10:07 PM
    Friday, July 27, 2012 9:56 PM

Answers