Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Getting an Error.

Getting an Error.

Scheduled Pinned Locked Moved Visual Basic
algorithmsdata-structuresdebugginghelpquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JollyMansArt
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • J JollyMansArt

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

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

      J 1 Reply Last reply
      0
      • D Dave Kreskowiak

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

        J Offline
        J Offline
        JollyMansArt
        wrote on last edited by
        #3

        I have installed the Crystal Runtime Library for 64bit and recieve the same error.

        D 2 Replies Last reply
        0
        • J JollyMansArt

          I have installed the Crystal Runtime Library for 64bit and recieve the same error.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • J JollyMansArt

            I have installed the Crystal Runtime Library for 64bit and recieve the same error.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

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

            J 1 Reply Last reply
            0
            • D Dave Kreskowiak

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

              J Offline
              J Offline
              JollyMansArt
              wrote on last edited by
              #6

              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.

              D 1 Reply Last reply
              0
              • J JollyMansArt

                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.

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

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

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups