G
Guest
We are using Crystal Report 8.0 ActiveX control CRSTL32.OCX. in our .net windows application form
When I package application into an MSI file, the CRSTL32.OCX is not included as a dependency. When install and run from test machine, I got this following error
System.Runtime.InteropServices.COMException (0x80040154): Class not registere
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 AdvocacyCenter.frmReportMain.InitializeComponent(
at AdvocacyCenter.frmReportMain..ctor(
at AdvocacyCenter.frmMain.tlbMain_ButtonClick(Object sender, ToolBarButtonClickEventArgs e
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m
at System.Windows.Forms.ToolBar.WndProc(Message& m
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam
Then I manually added CRSTL32.OCX in the application package and set it as selfregister, compiled into msi file and installed on test machine. This time I got error message differren
Exception from HRESULT: 0x800A504
How can I register this OCX file correctly? I tried using REGSVR32.exe as well with no luck
Frank
When I package application into an MSI file, the CRSTL32.OCX is not included as a dependency. When install and run from test machine, I got this following error
System.Runtime.InteropServices.COMException (0x80040154): Class not registere
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 AdvocacyCenter.frmReportMain.InitializeComponent(
at AdvocacyCenter.frmReportMain..ctor(
at AdvocacyCenter.frmMain.tlbMain_ButtonClick(Object sender, ToolBarButtonClickEventArgs e
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m
at System.Windows.Forms.ToolBar.WndProc(Message& m
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam
Then I manually added CRSTL32.OCX in the application package and set it as selfregister, compiled into msi file and installed on test machine. This time I got error message differren
Exception from HRESULT: 0x800A504
How can I register this OCX file correctly? I tried using REGSVR32.exe as well with no luck
Frank