Results 1 to 7 of 7

Thread: [RESOLVED] [2005] Wierd Problem.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Resolved [RESOLVED] [2005] Wierd Problem.

    I Run My Application and it gives me this error message. I thought it was the problem of the application's unmanaged code but when i run the same application but an older build, it gives me the same error.

    I cant tell what could be the problem.

    It highlights my "InitializeComponent()" in the sub New and throws this exception.
    Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Wierd Problem.

    Are you using any ActiveX controls or COM components? Are you using any references outside the standard Framework?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [2005] Wierd Problem.

    I have now checked the Enable unmanaged code for debugging and it does the samething and throws this exception.

    An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll

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

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [2005] Wierd Problem.

    Yes JMC i am using an activeX control.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Wierd Problem.

    Then it would appear that that ActiveX control is not registered on your system. I've never done it manually myself but I'm sure there are plenty of people around here who have. You could wait for one of them to tell you or you could look it up on MSDN.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [2005] Wierd Problem.

    Ok. Thanks. Let me see if i can register it.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [2005] Wierd Problem.

    Ok. I re-registered it and it fixed the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width