Microsoft KB Archive/942380

= Error message when you try to apply a hotfix or an update: &quot;Error 9002. Microsoft Visual Studio .NET 2003 Hotfix (KBxxxxxx) cannot be installed because you have one or more hotfixes installed. Remove them and try again.&quot; =

Article ID: 942380

Article Last Modified on 12/3/2007

-

APPLIES TO

 Microsoft .NET Framework 1.1 Service Pack 1 Microsoft .NET Framework 1.0 Service Pack 3 Microsoft Visual Studio .NET 2003 Service Pack 1, when used with:  Microsoft Visual Studio .NET 2003 Professional Edition

 Microsoft Visual Studio .NET 2003 Enterprise Architect

 Microsoft Visual Studio .NET 2003 Enterprise Developer</li></ul>

 Microsoft Visual Studio .NET 2003 Academic Edition</li></ul>

 Microsoft Visual Basic .NET 2003 Standard Edition</li></ul>

 Microsoft Visual C++ .NET 2003 Standard Edition</li></ul>

 Microsoft Visual C# .NET 2003 Standard Edition</li></ul>

 Microsoft Visual J# .NET 2003 Standard Edition</li></ul> </li> Microsoft Visual Studio .NET 2002 Enterprise Architect</li> Microsoft Visual Studio .NET 2002 Enterprise Developer</li> Microsoft Visual Studio .NET 2002 Professional Edition, when used with:  Microsoft Visual Basic .NET 2002 Standard Edition</li></ul>

 <li>Microsoft Visual C# .NET 2002 Standard Edition</li></ul>

<ul> <li>Microsoft Visual C++ .NET 2002 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista

<div class="symptoms_section">

SYMPTOMS
When you try to apply a hotfix or an update, you may receive an error message that resembles the following:

Error 9002. Microsoft Visual Studio .NET 2003 Hotfix (KB ) cannot be installed because you have one or more hotfixes installed. Remove them and try again.

You may receive this error message when you try to apply a hotfix or an update for any of the following products:
 * The Microsoft .NET Framework 1.1 or the .NET Framework 1.0
 * Microsoft Visual Studio .NET 2003 or Visual Studio .NET 2002

<div class="cause_section">

CAUSE
This problem may occur because of the following:
 * You have applied an unmerged hotfix for the product.

An unmerged hotfix is a hotfix or an update that will not be included in a service pack or in a product release. This kind of fix is intended to resolve a specific problem that a customer has with a product. However, this fix is unsuitable for general use.
 * You have applied an update that intentionally prevents you from applying a hotfix or an update.

Some updates intentionally block other updates for technical reasons such as dependencies across updates.

<div class="workaround_section">

WORKAROUND
To work around this problem, use one of the following methods.

Method 1
Remove the hotfix or update that is blocking the hotfix or update that you are trying to apply.

Typically, you can remove a hotfix or update by using the Add Or Remove Programs item in Control Panel. To determine which hotfix or update you must remove, follow these steps: <ol> <li>Open the Windows Installer (.msi) log for the hotfix or for the update that you could not apply. If you do not have the log, or if you cannot locate the log, use the following command to try to apply the hotfix or update again:

 .exe /L: .log

</li> <li>In the log file that you located or created in step 1, locate the line that contains text that resembles the following:

DDPatch:M937058.BlockingPatches=U822550;U832138;U8321381031;U842936;U883661;U8321381036

The numbers correspond to the blocking hotfixes or updates. The numbers start with either a U or an M.

If you cannot locate any blocking hotfixes or updates in the log, go to step 4.</li> <li>Use the Add Or Remove Programs item in Control Panel to remove all hotfixes and updates that appear in the list that you located in step 2. Then, try again to apply the hotfix or update that you tried to apply when you experienced this problem.</li> <li>If you cannot locate any blocking hotfixes or updates in the log, view the list in the Add Or Remove Programs item in Control Panel to determine which hotfix or update you must remove. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open the Add Or Remove Programs item in Control Panel.</li> <li>Locate all listed hotfixes and updates that correspond to the product that you are trying to update.</li> <li>Remove the hotfix or update that you applied last. If you have applied multiple hotfixes and updates, and you do not know which hotfix or update you applied last, you can start by removing the hotfix or update that has the highest number.</li> <li>After you remove the hotfix or update, try to apply the hotfix or update that you tried to apply when you experienced this problem. If you still experience the problem, repeat step c to remove the next most recent hotfix or update. Then, try again to apply the hotfix or update that you tried to apply when you experienced this problem.</li></ol>

Note You may have to repeat steps c and d for several hotfixes and updates before you can successfully apply the hotfix or update that you tried to apply when you experienced this problem.</li></ol>

Method 2
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Remove the registry entry that indicates the presence of the blocking hotfix or update. The following table lists the registry keys for the products that are mentioned in the &quot;Symptoms&quot; section.

To remove the registry entry that indicates the presence of the blocking hotfix or update, follow these steps: <ol> <li>Click Start, click Run, type regedit.exe, and then click OK.</li> <li>Based on the product for which you are trying to apply a hotfix or an update, determine the associated registry key from the table that appears previously.</li> <li>In Registry Editor, locate the appropriate registry key.</li> <li>Locate the registry entry for the blocking hotfix or update. For information about how to determine the blocking hotfix or update for which you must remove the registry entry, see steps 1 and 2 in Method 1. <ul> <li>Example 1:

You are trying to apply update 937058 for Microsoft Visual Studio .NET 2003. However, the update is blocked because you previously applied update 842936. In this scenario, you must locate one of the following registry keys:

</li> <li>Example 2:

You are trying to apply update 928367 for the Microsoft .NET Framework 1.0. However, the update is blocked because you previously applied update 886906. In this scenario, you must locate one of the following registry keys:

</li></ul> </li> <li>When you locate the appropriate registry key, right-click the appropriate registry entry, and then click Delete. For example, right-click M842936, and then click Delete.</li> <li>Exit Registry Editor.</li></ol>

For more information about an unmerged hotfix that you have previously applied, or about an update that is blocked by a previously applied hotfix or update, contact Microsoft Customer Support Services. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Keywords: kbtshoot kbbug kbsecurity kbpubtypekc kbexpertiseadvanced kbexpertiseinter kbexpertisebeginner KB942380

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.