Class not registered

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rossouw
    New Member
    • Jun 2009
    • 14

    Class not registered

    Good day,

    I know there are numerous questions about the HRESULT 0x80040154 (REGDB_E_CLASSN OTREG) error, and I have seen all (maybe most) of the solutions, but none of those are of any help, I downloaded all the possible apps that have been suggested but none of those work.

    I am using Visual Basic 2005, XP and Office 2003 ( I prefer to use this combination), I am also using the following dll's:
    - Interop.Word
    - Interop.Excel
    - Interop.Outlook
    - MySql.Data
    - All default dll's

    The program I have designed works perfect on my computer, but when I install it on another pc, I get this error. The other pc's have .net framework 2.0 on them, which is required for the installer to work, as well as XP and either Office 2003 or Office 2007.

    Ok, now where the error occurs - I am only giving two places of occurence, but it occurs throughout the program:

    A)
    As an example, there are two forms, frmMain and frmSecond, and frmMain has a button with the following code :

    frmSecond.Enabl ed = true
    frmSecond.Visib le = true

    When I click the button, the error occurs at the first instance where the form object is referenced, in this case, it will be at
    frmSecond.Enabl ed = true,
    if this line is commented out will occur at
    frmSecond.Visib le = true, etc.

    At first I thought it is because of my global variables being created as other forms or classes, so I made those local variables, local to the method using them, but that wasn't the case.

    B)
    As another example, there is one form, frmMain, and a class, clsSomeClass, and frmMain has a button with the following code :

    dim clsSomeClassRef as new clsSomeClassRef
    clsSomeClassRef .method(paramet er(s))

    for simplicity, the clsSomeClass manipulates a SQL database, for this example, lets say it creates as new entry in the database.

    When the button is clicked, the error will pop up at
    clsSomeClassRef .method(paramet er(s)),

    and the class only has the MySql.data dll.

    I am at a complete loss of reasons of why this is happening.

    I have used messageboxes to pinpoint where exactly these errors occur, and at the place they do occur, the program crashes without any error message. (If I don't use any messageboxes, the error message will pop up.)

    I have been told that my dlls needs to be registered, but not all my classes use dlls, an other uses some or all of them.

    I you guys could help me with this error, I would be highly grateful and thankful and your efforts would be much appreciated!!

    It is kinda urgent,

    Thanks a lot,
    Rossouw
  • CyberSoftHari
    Recognized Expert Contributor
    • Sep 2007
    • 488

    #2
    you didn't post error details and error numbers. avoid explaining toomuch thing. just explain with error number and error message and exact code part.

    Comment

    • Rossouw
      New Member
      • Jun 2009
      • 14

      #3
      The error and location where it occurs has been given.

      I have given a broad explanation of where is occurs, because it won't be clear if the explanation is simple.

      The error is :
      HRESULT 0x80040154 (REGDB_E_CLASSN OTREG)

      The exact code part(s) is given in example A and B.

      Comment

      Working...