Microsoft KB Archive/823238

= &quot;Class not registered&quot; error message when you try to create a Visual Studio Analyzer project =

Article ID: 823238

Article Last Modified on 5/16/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-



SYMPTOMS
In Visual Studio .NET, when you try to create a Visual Studio Analyzer project, you may receive the following error message:

Class not registered

In Visual Studio .NET, when you run the Visual Studio Analyzer Project Wizard, you may receive the following error message:

Visual Studio Analyzer could not find any registered events on

Note  is a placeholder for the name of your computer.

Additionally, in Step 2 of the Visual Studio Analyzer Project Wizard, you may notice that the list of components is empty.

When you try to open an existing Visual Studio Analyzer project in Visual Studio .NET, you may receive the following error messages in Solution Explorer:

 (unavailable)

The project file cannot be loaded.

Note  is a placeholder for the name of your existing project.



CAUSE
When you install Visual Studio .NET 2003 on a computer that already has Visual Studio .NET 2002 installed, Visual Studio .NET 2003 overwrites the registry key that contains information about the version of Visual Studio Analyzer that is installed with Visual Studio .NET 2002.

When you remove Visual Studio .NET 2002, Visual Studio .NET 2002 does not verify whether Visual Studio .NET 2003 is also installed on your computer, and the uninstaller removes the information that is contained in the registry key. Therefore, after you remove Visual Studio .NET 2002, you may experience the behavior that is discussed in the &quot;Symptoms&quot; section.

Note This behavior occurs when you perform a side-by-side installation of Visual Studio .NET 2002 and Visual Studio .NET 2003, and then you remove either Visual Studio .NET 2002 or Visual Studio .NET 2003. This behavior occurs regardless of the version of the product that you install first.



RESOLUTION
To resolve this problem for the scenario that is described in the &quot;More Information&quot; section, repair your existing installation of Visual Studio .NET 2003. To do this, follow these steps:  Quit Visual Studio .NET 2003. Do the following, depending on your operating system:  Microsoft Windows 2000

In Control Panel, double-click Add/Remove Programs. Microsoft Windows XP or Microsoft Windows Server 2003

In Control Panel, click Add or Remove Programs.  In the Add or Remove Programs dialog box, click your Visual Studio .NET 2003 installation. For example, if you have installed the English version of Visual Studio .NET 2003 Enterprise Architect Edition, click Microsoft Visual Studio .NET Enterprise Architect 2003 - English. Click Change/Remove.</li> In the Visual Studio .NET Setup dialog box, click Visual Studio .NET.</li> On the Visual Studio .NET Maintenance Page, click Repair/Reinstall.</li> When the repair is completed, click Done.</li> In the Visual Studio .NET Setup dialog box, click Exit.</li> Create a new Visual Studio Analyzer project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Start Visual Studio .NET 2003.</li> On the File menu, point to New, and then click Project.</li> Under Project Types, expand Other Projects.</li> Under Other Projects, click Visual Studio Analyzer Projects.</li> Under Templates, click Analyzer Project, and then click OK.</li></ol> </li> On the File menu, click Close Solution.</li> Use the Visual Studio Analyzer Project Wizard to create a new Visual Studio Analyzer project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the File menu, point to New, and then click Project.</li> Under Project Types, click Visual Studio Analyzer Projects.</li> Under Templates, click Analyzer Wizard, and then click OK.</li> <li>In Step 1 of the Visual Studio Analyzer Project Wizard, click to select the name of your computer, and then click Next.</li> <li>In Step 2 and Step 3 of the Visual Studio Analyzer Project Wizard, click Next.</li> <li>In Step 4 of the Visual Studio Analyzer Project Wizard, click Finish. A Visual Studio Analyzer dialog box appears.</li> <li>Close the Visual Studio Analyzer dialog box.</li></ol> </li> <li>On the File menu, click Close Solution.</li> <li>On the File menu, point to Open, and then click Project.</li> <li>In the Open Project dialog box, locate and then click any existing Visual Studio Analyzer project. Click Open.

The project opens without the errors that appear in the &quot;Symptoms&quot; section.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> <li>Install Visual Studio .NET 2002 on your computer.</li> <li>Install Visual Studio .NET 2003 on your computer.</li> <li>Remove Visual Studio .NET 2002 from your computer.</li> <li>Run Visual Studio .NET 2003.</li> <li>Create a new Visual Studio Analyzer project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Start Visual Studio .NET 2003.</li> <li>On the File menu, point to New, and then click Project.</li> <li>Under Project Types, expand Other Projects.</li> <li>Under Other Projects, click Visual Studio Analyzer Projects.</li> <li>Under Templates, click Analyzer Project, and then click OK.

You receive the receive the following error message:

Class not registered

</li></ol> </li> <li>Click OK to dismiss the error message.</li> <li>Use the Visual Studio Analyzer Project Wizard to create a new Visual Studio Analyzer project. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the File menu, point to New, and then click Project.</li> <li>Under Project Types, click Visual Studio Analyzer Projects.</li> <li>Under Templates, click Analyzer Wizard, and then click OK.</li> <li>In Step 1 of the Visual Studio Analyzer Project Wizard, click to select the name of your computer, and then click Next.

You receive the following error message:

Visual Studio Analyzer could not find any registered events on

</li></ol> </li> <li>Click OK to dismiss the error message, and then click Cancel.</li> <li>On the File menu, point to Open, and then click Project.</li> <li>In the Open Project dialog box, locate and then click any existing Visual Studio Analyzer project. Click Open.

In Solution Explorer, you receive the following error message:

 (unavailable)

</li> <li>Expand  (unavailable).

You receive the following error message:

The project file cannot be loaded.

Note  is a placeholder for the name of your existing project.</li></ol>

<div class="references_section">