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. C#
  4. Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) -- Exception

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) -- Exception

Scheduled Pinned Locked Moved C#
helpquestion
5 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
    jamesjk
    wrote on last edited by
    #1

    When I try to drag one of my usercontrol onto the form, I get the following exception. But I could add the control onto the same project by opening it in mt friend's system. But coming back to my system it gives me the same error... what could be wrong in my system? Could somebody help me in solving this issue plssssss ????? Exception Message: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Hide 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 Orders.Orders.InitializeComponent() at Orders.Orders..ctor() Thanks in Advance

    C 1 Reply Last reply
    0
    • J jamesjk

      When I try to drag one of my usercontrol onto the form, I get the following exception. But I could add the control onto the same project by opening it in mt friend's system. But coming back to my system it gives me the same error... what could be wrong in my system? Could somebody help me in solving this issue plssssss ????? Exception Message: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) Hide 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 Orders.Orders.InitializeComponent() at Orders.Orders..ctor() Thanks in Advance

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Looks like you're using a component that is not registered or not licensed on the form

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      J 1 Reply Last reply
      0
      • C Christian Graus

        Looks like you're using a component that is not registered or not licensed on the form

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

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

        Thanks Graus... but I really didn,t get you. Could you brief it... How do I register the component... Thanks Again..

        C 1 Reply Last reply
        0
        • J jamesjk

          Thanks Graus... but I really didn,t get you. Could you brief it... How do I register the component... Thanks Again..

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I have no idea. I just see an error message with a stack trace that indicates methods are being called to use an unregistered component, and they are failing. I don't even know what component you're using, you didn't say

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          J 1 Reply Last reply
          0
          • C Christian Graus

            I have no idea. I just see an error message with a stack trace that indicates methods are being called to use an unregistered component, and they are failing. I don't even know what component you're using, you didn't say

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            J Offline
            J Offline
            jamesjk
            wrote on last edited by
            #5

            Thanks Graus... Even though you didn't mention anything specifically in your reply.. , it helped to track the actual problem... In fact I designed a usercontrol using some third party controls.. When I tried using my usercontrol (which was actually) designed in another system by myself) I miised to register the third party controls... Thanks Again...

            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