Error message when you start Accounting Professional or Accounting Express: "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

Applies to: Microsoft Office Accounting Professional 2007Microsoft Office Accounting Express 2007

Symptoms


Consider the following scenario:
  • You install the full version of Microsoft SQL Server 2005 on the computer.
  • You install Microsoft SQL Server Express 2005 when you install Microsoft Office Accounting Professional or Microsoft Office Accounting Express.
  • After you install Microsoft SQL Server Express 2005, you remove the full version of Microsoft SQL Server 2005.
In this scenario, you receive the following error message when you start Accounting Professional or Accounting Express:

Microsoft Office Accounting has encountered a problem and needs to close. We are sorry for the inconvenience. To see what data this error report contains, click here.

You also receive this error message when you print a report in Accounting Professional or in Accounting Express.

After you click to view the report data, you receive an error message that resembles the following message:

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

When you receive the second error message, Accounting Professional or Accounting Express stops responding.

Cause


This problem occurs because key components that are used by Accounting Professional or Accounting Express are removed when you remove the full version of Microsoft SQL Server 2005. Some key components that are removed are the Microsoft Office 2003 Web Components.

Resolution


To resolve this problem, reinstall the Microsoft Office 2003 Web Components. To do this, follow these steps:

  1. Click Start, click Control Panel, and then click Add or Remove Programs.

    Note If you are using a Windows Vista operating system, click Control Panel, and then click Programs and Features.

  2. Click Microsoft Office 2003 Web Components, and then click Remove.

    Note If Microsoft Office 2003 Web Components does not appear in the list, go to step 3.
  3. Obtain and install the Microsoft Office 2003 Web Components. For more information about how to do this, visit the following Microsoft Web site:
  4. Start Accounting Professional or Accounting Express.
If the problem persists, remove Accounting Professional or Accounting Express. Then, reinstall Accounting Professional or Accounting Express.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.