Error: System.Runtime.InteropServices.COMException (0×80040154): Class not registered (Exception from HRESULT: 0×80040154 (REGDB_E_CLASSNOTREG))

Symptoms

  • Error: System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) displays when you click the Attach (paperclip) icon on the SmartVault Toolbar or when you open the SmartVault Inbox and then click Add.
  • The SmartVault Toolbar displays as active, but when you click the Attach (paperclip) icon on the SmartVault Toolbar, nothing happens. (The Attach Documents dialog box does not display.)
  • After you double-click on the Documents (folder) icon on the SmartVault Toolbar to open the Documents List dialog box, when you click Add nothing happens.
  • When you open the SmartVault Inbox and then click Add, nothing happens.

Note: When these symptoms occur, you can still upload documents to SmartVault by dragging and dropping documents onto the SmartVault Toolbar or by dragging and dropping documents into the SmartVault Inbox.

Cause

One or more of these symptoms typically occur when the GdViewerpro4.ocx file is not registered on your computer. The GdViewerpro4.ocx file is the control that manages the Attach Documents dialog box. When the when the GdViewerpro4.ocx file is not registered, SmartVault cannot open the Attach Documents dialog box.

Resolution

To resolve this issue, try registering the GdViewerpro4.ocx file manually.

To register a file manually, you must be either a local Administrator on your computer or you must run the Windows Command Prompt utility as an Administrator.

The steps for registering a file manually vary based on the version of the Windows operating system you are running.

Windows Vista or Windows 7

To manually register the GdViewerpro4.ocx file on a Windows Vista or Windows 7 computer:

  1. Click Start.
  2. In the Search programs and files field, copy and paste regsvr32 GdViewerpro4.ocx into the command prompt, and then press ENTER on your keyboard.
  3. Note: You may see a message telling you that the file has been registered after you press enter.

  4. In QuickBooks, on the SmartVault Toolbar, try clicking the Attach (paperclip) icon on the SmartVault Toolbar again. The Attach Documents dialog box should now display.
  5. If the Attach Documents dialog box still does not display, complete the following steps:
    1. Close QuickBooks.
    2. Exit SmartVault by right-clicking on the SmartVault icon and then clicking Exit.
    3. Note: The SmartVault icon is the green keyhole icon in the notification area at the bottom-right corner of your computer.

    4. Reopen QuickBooks and sign in to SmartVault again from the SmartVault Desktop software.
    5. Try clicking the Attach (paperclip) icon on the SmartVault Toolbar again. The Attach Documents dialog box should now display.

Windows XP

To manually register the GdViewerpro4.ocx file on a Windows XP computer:

  1. Click Start > Programs > Accessories.
  2. If you are a local Administrator on your computer, double-click the Command Prompt utility.
  3. If you are not a local administrator on your computer, right-click on the Command Prompt utility, click Run as administrator…, and then type in the Administrator user name and password.
  4. In the command prompt DOS window, copy and paste cd windowssystem32 into the command prompt, and then press ENTER on your keyboard.
  5. At the new prompt, copy and paste regsvr32 GdViewerpro4.ocx and then press ENTER on your keyboard.
  6. Note: You may see a message telling you that the file has been registered after you press enter.

  7. In QuickBooks, on the SmartVault Toolbar, try clicking the Attach (paperclip) icon on the SmartVault Toolbar again. The Attach Documents dialog box should now display.
  8. If the Attach Documents dialog box still does not display, complete the following steps:
    1. Close QuickBooks.
    2. Exit SmartVault by right-clicking on the SmartVault icon and then clicking Exit.
    3. Note: The SmartVault icon is the green keyhole icon in the notification area at the bottom-right corner of your computer.

    4. Reopen QuickBooks and sign in to SmartVault again from the SmartVault Desktop software.
    5. Try clicking the Attach (paperclip) icon on the SmartVault Toolbar again. The Attach Documents dialog box should now display.

Knowledge Base ID

KB312