Getting an Error.
-
I am getting an error: Before I show the error I will explain a sec. 32-bit OS works fine 64-bit OS Error. The error is specifically on the form that has the Crystal reports module on it. Crystal Reports Runtime library is installed. Any suggestions on the Error? I have been searching the net without success.
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> 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 BondingBroker.frmViewWIPAnalysis.InitializeComponent()
--- End of inner exception stack trace ---
at BondingBroker.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at BondingBroker.frmWIPAnalysis.WIPAnalysisToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWind -
I am getting an error: Before I show the error I will explain a sec. 32-bit OS works fine 64-bit OS Error. The error is specifically on the form that has the Crystal reports module on it. Crystal Reports Runtime library is installed. Any suggestions on the Error? I have been searching the net without success.
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> 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 BondingBroker.frmViewWIPAnalysis.InitializeComponent()
--- End of inner exception stack trace ---
at BondingBroker.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at BondingBroker.frmWIPAnalysis.WIPAnalysisToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindFrom the stack trace, your code is running under the 64-bit runtime. It would appear that the Crystal Reports runtime you have installed is the 32-bit version. Since you cannot combine 64 and 32 bit code in the same process, you can get funny little issues like this. I don't use Crystal Reports, so I don't know if there is a seperate 64-bit installation for the CR runtime.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
From the stack trace, your code is running under the 64-bit runtime. It would appear that the Crystal Reports runtime you have installed is the 32-bit version. Since you cannot combine 64 and 32 bit code in the same process, you can get funny little issues like this. I don't use Crystal Reports, so I don't know if there is a seperate 64-bit installation for the CR runtime.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...I have installed the Crystal Runtime Library for 64bit and recieve the same error.
-
I have installed the Crystal Runtime Library for 64bit and recieve the same error.
Well, it looks like the app is still using the x86 version of Crystal Reports. Try forcing the app to compile as 32-bit (x86) instead of "CPU Any" and see what happens.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
I have installed the Crystal Runtime Library for 64bit and recieve the same error.
From what I've been reading, CR's support for 64-bit is wacky. Take a look at this[^] fine little example, which may solve your problem. And people wonder why I never use Crystal Reports...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
From what I've been reading, CR's support for 64-bit is wacky. Take a look at this[^] fine little example, which may solve your problem. And people wonder why I never use Crystal Reports...
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...Your right it is a 32-bit to 64 bit issue. The issue is more dealing with Me.AxAcroPDF1.src = frmWIPAnalysis.fileName Adobe Acrobat pdf viewer. Does anyone have an alternative I could use to view pdf in both 32 and 64 bit environments.
-
Your right it is a 32-bit to 64 bit issue. The issue is more dealing with Me.AxAcroPDF1.src = frmWIPAnalysis.fileName Adobe Acrobat pdf viewer. Does anyone have an alternative I could use to view pdf in both 32 and 64 bit environments.
I don't know of any that are "dual mode" (to make up a word). I think you're going to have to have two different libraries in your installed, one 32-bit, the other 64, and install which ever one is appropriate for the platform in question.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...