Microsoft KB Archive/827755

= You receive an &quot;Application has generated an exception that cannot be handled&quot; error message when you remove SharePoint Portal Server and Windows SharePoint Services from your server =

Article ID: 827755

Article Last Modified on 7/28/2006

-

APPLIES TO


 * Microsoft Office SharePoint Portal Server 2003
 * Microsoft Windows SharePoint Services

-



SYMPTOMS
When you use the Add/Remove Programs tool to remove SharePoint Portal Server and Windows SharePoint Services from your server, you may receive the following error message in a SPSADM.EXE - Common Language Runtime Debugging Services dialog box:

Application has generated an exception that cannot be handled.

Process id=0xb60 (2912), Thread id=0x1dc (476)

Click OK to terminate the application.

Click CANCEL to debug the application.

Additionally, you may receive the following error message in a Microsoft Office SharePoint Portal Server 2003 Setup dialog box:

Installation ended prematurely because of an error.



CAUSE
This issue occurs if you do not remove SharePoint Portal Server and Windows SharePoint Services in the correct order. This issue occurs if you remove Windows SharePoint Services before you remove SharePoint Portal Server from the server.

To fully remove SharePoint Portal Server from the server, you must remove the programs in the following order:
 * 1) SharePoint Portal Server
 * 2) Windows SharePoint Services
 * 3) Microsoft SQL Server Desktop Engine (MSDE), if it is installed on the server



WORKAROUND
To recover a server where SharePoint Portal Server and Windows SharePoint Services are not removed in the correct order:  Log on to the server as a member of the local Administrators group. Click Start, and then click Run. In the Open box, type cmd, and then click OK. Switch to the drive where SharePoint Portal Server is installed. Type the following line, where  is the path of the shared folder that contains the SharePoint Portal Server CD files, and then press ENTER:

msiexec /qb /i \WSS\Sts.msi /L*v  STS_Install.log LAUNCHEDFROMSETUPSTS=1

 Switch to the drive where Windows is installed. Type the following line, and then press ENTER:

cd %programfiles%\Common Files\Microsoft Shared\Web Server Extensions\60\Config

</li> Type the following line, and then press ENTER:

copy Web.config Web.config.bak

</li> Type the following line, where  is the path of the shared folder that contains the SharePoint Portal Server CD files, and then press ENTER:

msiexec /qb /I \SPS\Sps.msi /L*v  SPS_Binary_Upgrade.log REBOOT=ReallySuppress

</li> Type the following line, where  is the path of the shared folder that contains the SharePoint Portal Server files, and then press ENTER:

msiexec /qb /fvm \SPS\Sps.msi /L*v  SPS_Repair.log REBOOT=ReallySuppress DONTSTARTSERVICE=1

</li> When Setup completes and you are prompted to restart the server, click No.</li> Use the Add/Remove Programs tool to remove SharePoint Portal Server, Windows SharePoint Services, and MSDE (if it is installed on the server).

Important Make sure that you remove the programs in this exact order.</li></ol>

To avoid this issue when you remove SharePoint Portal Server from the server, use the Add/Remove Programs tool to remove the programs in the following order:
 * SharePoint Portal Server
 * Windows SharePoint Services
 * MSDE (if it is installed on the server)

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
For more information about how to deploy, configure, and administer SharePoint Portal Server and Windows SharePoint Services, see the Microsoft Office SharePoint Portal Server 2003 Administration Guide. The Microsoft Office SharePoint Portal Server 2003 Administration Guide (Administrator's Help.chm) is located in the Docs folder in the root folder of the SharePoint Portal Server CD.

For more information about SharePoint Portal Server and Windows SharePoint Services, visit the following Microsoft Web site:

http://www.microsoft.com/sharepoint/

Keywords: kberrmsg kbbug kbpending kbuninstall KB827755

-

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

© Microsoft Corporation. All rights reserved.