Retrieving the COM class factory for component with CLSID{} failed due to the following error: 80040154 Class not registered

-2

I'm 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))

after I do something that will trigger my Microsoft.Office.Interop.Excel.Application function. When I run my web app on my visual studio it works fine, that problem only appears when I publish it on godaddy. This is the first time I host a web, maybe someone knows how to fix this, thanks in advance.

Here is the stack trace:

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80040154): 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)).] System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +122 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239 System.Activator.CreateInstance(Type type, Boolean nonPublic) +85 System.Activator.CreateInstance(Type type) +12 Calculator.Home.Hitung_PP_BCR_NPV_IRR() +5779 Calculator.Home.dropDwnPerkiraanNyala_TextChanged(Object sender, EventArgs e) +383 System.Web.UI.WebControls.ListControl.OnTextChanged(EventArgs e) +121 System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +135 System.Web.UI.WebControls.DropDownList.RaisePostDataChangedEvent() +140 System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +15 System.Web.UI.Page.RaiseChangedEvents() +136 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1612

c#
asp.net
shared-hosting
asked on Stack Overflow Sep 16, 2019 by Alex Bradley • edited Sep 16, 2019 by Palle Due

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0