Microsoft KB Archive/927164

= Error message when you try to access document libraries after you upgrade Microsoft Office Forms Server 2007: &quot;An unexpected error has occurred&quot; =

Article ID: 927164

Article Last Modified on 3/9/2007

-

APPLIES TO


 * Microsoft Office Forms Server 2007

-



SYMPTOMS
Consider the following scenario:
 * You start the document conversions launcher service and the document conversions load balancer service in Microsoft Office Forms Server 2007 Beta 2.
 * You upgrade Forms Server 2007 Beta 2 to Forms Server 2007 Beta 2 Technical Refresh.
 * You upgrade Forms Server 2007 Beta 2 Technical Refresh to the original release version of Forms Server 2007.
 * You try to access document libraries on Forms Server 2007.

In this scenario, you receive the following error message:

An unexpected error has occurred. Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services.



CAUSE
This problem occurs because the document conversion feature for Microsoft Office InfoPath forms has been removed in the later versions of Microsoft Office Forms Server 2007. When you upgrade the server as described in the &quot;Symptoms&quot; section, the upgrade process does not remove these entries from the metadata for each installed document converter.

When you try to access the document library, code is executed to retrieve information about the document conversion service. Because this document conversion feature was removed, the information is unavailable. Therefore, you receive the error message that is mentioned in the &quot;Symptoms&quot; section.



RESOLUTION
To resove this problem, follow these steps:  Open Notepad.  Paste the following code in Notepad. using System;

using Microsoft.SharePoint.Administration;

class RemoveBeta2FormsServicesConverters

{

static int Main(string[] args)

{

if (args.Length != 1 ||args[0] != &quot;-remove&quot;)

{

Console.WriteLine(&quot;Removing converters created by Forms Services 2007 Beta 2.&quot;);

Console.WriteLine(&quot;Usage: RemoveBeta2FormsServicesConverters.exe -remove&quot;);

Console.WriteLine(&quot;\tRemoving converters created by Forms Services 2007 Beta 2 on all Web Applications.&quot;);

return 1;

}

SPFarm farm = SPFarm.Local;

if (farm == null)

{

Console.WriteLine(&quot;Can't get Local SPFarm. Make sure you are member of 'Farm Admins' group&quot;);

return 2;

}

SPWebService wssService = farm.Services.GetValue(&quot;&quot;);

SPWebApplicationCollection webapps = wssService.WebApplications;

foreach (SPWebApplication webapp in webapps)

{

Console.WriteLine(&quot;WebApplication:{0} ({1})&quot;, webapp.DisplayName, webapp.Id);

Console.WriteLine(&quot;\tRemoving converters created by Forms Services Beta 2&quot;);

webapp.DocumentConverters.RemoveConverter(new Guid(&quot;{4CBD639B-ECCD-4b70-9F9C-FE78D15F9592}&quot;));

webapp.DocumentConverters.RemoveConverter(new Guid(&quot;{CA538DCF-2D0A-42b4-B90F-132AC21261F9}&quot;));

webapp.DocumentConverters.RemoveConverter(new Guid(&quot;{B16566EB-1A1D-40ac-8E91-91EDFD0790EA}&quot;));

}

Console.WriteLine(&quot;Removing policy feature installed by Forms Services Beta 2&quot;);

Microsoft.Office.RecordsManagement.InformationPolicy.PolicyFeatureCollection.Delete(&quot;Microsoft.Office.RecordsManagement.PolicyFeatures.DocumentConversion&quot;);

return 0;

}

}  On the File menu, click Save, and then specify a location to save this file. Under Save as type, click All Files. In the File name box, type RemoveBeta2FormsServicesConverters.cs, and then click Save. Click Start, click Run, type cmd, and then click OK.</li> Change the current folder to the folder where you saved the file.</li> At the command prompt, type the following, and then press ENTER:

%windir%\Microsoft.NET\Framework\v2.0.50727\csc RemoveBeta2FormsServicesConverters.cs /debug+ /r:%windir%\assembly\GAC_MSIL\Microsoft.SharePoint\12.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.dll /r:%windir%\assembly\GAC_MSIL\Microsoft.Office.Policy\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Policy.dll

</li> Run the RemoveBeta2FormsServicesConverters.exe file together with the -remove switch. For example, run the following:

RemoveBeta2FormsServicesConverters.exe -remove

</li></ol>

Keywords: kbexpertiseinter kbtshoot kbprb KB927164

-

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

© Microsoft Corporation. All rights reserved.