Microsoft KB Archive/945348

= Error message when you try to use the WsusMigrationImport tool to import data into a WSUS 3.0 server: &quot;WsusMigration failed with the below exception&quot; =

Article ID: 945348

Article Last Modified on 12/11/2007

-

APPLIES TO


 * Microsoft Windows Server Update Services 3.0

-



SYMPTOMS
When you try to use the WsusMigrationImport tool to import data into a Windows Server Update Services 3.0 (WSUS) server, you may receive the following exception error message:

WsusMigration failed with the below exception!

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)

at System.String.Format(IFormatProvider provider, String format, Object[] args)

at System.IO.TextWriter.WriteLine(String format, Object arg0, Object arg1, Object arg2)

at System.IO.TextWriter.SyncTextWriter.WriteLine(String format, Object arg0, Object arg1, Object arg2)

at Microsoft.WsusMigrationTools.ImportServerStatus.ProcessNode(XmlTextReader reader)

at Microsoft.WsusMigrationTools.ImportServerStatus.ImportData(XmlTextReader reader)

at Microsoft.WsusMigrationTools.WsusMigrationTool.Main(String[] args)

Note Microsoft provides the WsusMigrationImport tool as a sample tool.



CAUSE
This is problem occurs because of an error in the WsusMigrationImport tool.



RESOLUTION
To resolve this problem, edit and recompile the source code of the WsusMigrationImport tool to fix the error. To do this, follow these steps.

Note Because the WsusMigrationImport tool is shipped as a sample, Microsoft has included the source code with the tool.

Note Microsoft does not support changing the source code of the WsusMigrationImport.cs file.  In Visual Studio, open the project that contains the WsusMigrationImport.cs file.  Locate line 504, and then make the following change.

Existing line Console.WriteLine(&quot;Changed update {0}/{1} revision {3} to visible from declined.&quot;,

Replacement line Console.WriteLine(&quot;Changed update {0}/{1} revision {2} to visible from declined.&quot;,  Save the WsusMigrationImport.cs file. Build the project. Run the newly-compiled WsusMigrationImport tool to import data.



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

Keywords: kbtshoot kbprb kbexpertiseinter KB945348

-

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

© Microsoft Corporation. All rights reserved.