The subject error is:

Error: There was an error removing <name of assembly>

NOTE: If you using Windows Installer to remove the assembly, you receive:

Error: Assembly: <name>, Version=<version>, Culture=neutral, PublicKeyToken=<public key token>, Custom=null Unable to uninstall: assembly is required by one or more applications Pending references: SCHEME: <WINDOWS_INSTALLER> ID: <MSI> DESCRIPTION : <Windows Installer>

These problems are indicative a corrupted registry value.

To resolve this problem:

1. Use Regedit.exe to navigate to HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Global.

2. If the (Default) Value Name, a string (REG_SZ) data type, contains a Windows Installer descriptor, remove the Windows Installer descriptor data value.

3. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Assemblies\Global.

4. If the (Default) Value Name, a string (REG_SZ) data type, contains a Windows Installer descriptor, remove the Windows Installer descriptor data value.

NOTE: See Removing an Assembly from the Global Assembly Cache.