none
Office 2003 web component owc11 deployment on Windows Server 2008 R2 RRS feed

  • Question

  • Hi,

    We have a 32bit application that makes use of owc11 to display data in a excel grid that works correctly on windows XP. We want to migrate it to a Windows Server 2008 R2 terminal server. However once the application and owc11 have been deployed we get a class not registered error when attempting to view the data in the excel grid. Looking at the registry on the server it looks like owc11 is installed correctly. 

    Any help appreciated

    Thanks & Regards

    Moditha De Costa

    Wednesday, January 9, 2013 8:55 PM

Answers

All replies

  • Hi Moditha,

    Thanks for posting in the MSDN Forum.

    Would you please show me the details for the exception?

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 11, 2013 4:22 AM
    Moderator
  • Hi Tom the following are the exception details

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************

    System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

       at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)

       at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)

       at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)

       at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)

       at System.Windows.Forms.AxHost.CreateInstance()

       at System.Windows.Forms.AxHost.GetOcxCreate()

       at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)

       at System.Windows.Forms.AxHost.CreateHandle()

       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       at System.Windows.Forms.AxHost.EndInit()

       at Barcap.Morpheus.UI.Windows.Forms.QueryManager.QueryResultsForm.InitializeComponent() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Forms\QueryManager\QueryResultsForm.designer.cs:line 132

       at Barcap.Morpheus.UI.Windows.Forms.QueryManager.QueryResultsForm..ctor() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Forms\QueryManager\QueryResultsForm.cs:line 57

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.DisplayUserReport(UserReportNode reportNode, UserReportCustomNode customReportNode) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 291

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.DisplayUserReport(UserReportNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 262

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.RunQuery(UserReportNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 125

       at Barcap.Morpheus.Entities.QueryManager.Nodes.UserReportUINode.Execute() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Controls\QueryManager\UINodes\UserReportUINode.cs:line 30

       at Barcap.Morpheus.UI.Windows.Controls.MorpheusTreeView.CheckExpandOnDoubleClick(TreeNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Controls\MorpheusTreeView.cs:line 31

       at Barcap.Cafe.UI.Windows.Controls.CafeTreeView.WndProc(Message& m) in D:\Morpheus\Application\Cafe Source Code\_main.br\Source\Cafe.Client\UI\Windows\Controls\CafeTreeView.cs:line 608

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Thanks

    Moditha De Costa

    Saturday, January 12, 2013 12:54 AM
  • Hi Moditha,

    OK, I will involve some experts into your thread to see whether they can help you out. There might be some time delay, appreciate for your patience.

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, January 14, 2013 8:35 AM
    Moderator
  • The related two activex dll are owc11.dll & mscomctl.ocx

    Please try to re-register:

    regsvr32 owc11.dll, if it still fails, run regsvr32 mscomctl.ocx

    thanks.


    Forrest Guo | MSDN Community Support | Feedback to manager

    Monday, January 14, 2013 9:17 AM
    Moderator
  • I am having the same issue. I tried registering the two dlls but I still get the error.

    Thanks!

    Tuesday, March 12, 2013 7:33 PM
  • Operating System architecture could make a difference here: is the Windows a x64 system?

    If so, remember to register the control in two architectures:

    C:\windows\SysWOW64\cmd.exe

    C:\windows\System32\cmd.exe

    Does it help?


    Forrest Guo | MSDN Community Support | Feedback to manager

    Wednesday, March 13, 2013 1:34 AM
    Moderator
  • Hi Forrest,

    Thanks for the quick reply!

    It is not 64 bit. It is Windows Server R2 set up to operate as 32 bit. We did the OWC11 install and manually registered the controls. We still get the error.

    Thanks,

    Becca


    • Edited by Rebecca Coz Wednesday, March 13, 2013 12:37 PM
    Wednesday, March 13, 2013 12:36 PM
  • Hi,

    I am also facing same issue in Windows server 2012.I have also tried solution mention above.

    But didn't worked for me.

    Thankx

    Vikas

    Monday, July 15, 2013 12:00 PM
  • Hi Tom the following are the exception details

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************

    System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

       at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)

       at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)

       at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)

       at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)

       at System.Windows.Forms.AxHost.CreateInstance()

       at System.Windows.Forms.AxHost.GetOcxCreate()

       at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)

       at System.Windows.Forms.AxHost.CreateHandle()

       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

       at System.Windows.Forms.AxHost.EndInit()

       at Barcap.Morpheus.UI.Windows.Forms.QueryManager.QueryResultsForm.InitializeComponent() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Forms\QueryManager\QueryResultsForm.designer.cs:line 132

       at Barcap.Morpheus.UI.Windows.Forms.QueryManager.QueryResultsForm..ctor() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Forms\QueryManager\QueryResultsForm.cs:line 57

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.DisplayUserReport(UserReportNode reportNode, UserReportCustomNode customReportNode) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 291

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.DisplayUserReport(UserReportNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 262

       at Barcap.Morpheus.UI.Windows.Operations.QueryManager.QueryManagerUIOperations.RunQuery(UserReportNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\Operations\QueryManagerUIOperations.cs:line 125

       at Barcap.Morpheus.Entities.QueryManager.Nodes.UserReportUINode.Execute() in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Controls\QueryManager\UINodes\UserReportUINode.cs:line 30

       at Barcap.Morpheus.UI.Windows.Controls.MorpheusTreeView.CheckExpandOnDoubleClick(TreeNode node) in D:\Morpheus\Application\Source Code\main.br\Source\Morpheus\Morpheus.Client\UI\Windows\Controls\MorpheusTreeView.cs:line 31

       at Barcap.Cafe.UI.Windows.Controls.CafeTreeView.WndProc(Message& m) in D:\Morpheus\Application\Cafe Source Code\_main.br\Source\Cafe.Client\UI\Windows\Controls\CafeTreeView.cs:line 608

       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Thanks

    Moditha De Costa

    -------------------------

    Hi,

    I am also facing same issue...

    we are using OWC office XP component.These controls are not working in Windows 8.It gives same error message as above.This problem only comes when we use dotnet framework 4.

    Please suggest solution..

    With Regards,

    Vikas Sharma


    Tuesday, July 30, 2013 9:44 AM
  • I am facing the exact same issue, has anyone found a solution.

    The server 64bits, I have enabled 32 bits application in IIS

    The error message I am getting can be found below.

    Thank you for your help.

    Guillaume

    Retrieving the COM class factory for component with CLSID {0002E569-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 {0002E569-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 {0002E569-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) +98
       System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
       System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
       BallParkTool.infield_library.CalculateXML(Int32 EstID, Literal BallParkResults) +121
       BallParkTool.Main1.RunEstimate_Click(Object sender, EventArgs e) +64
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    


    Monday, July 21, 2014 1:41 PM