Microsoft KB Archive/926264

= Non-default references are removed when you convert a Visual Studio 2003 Tools for Office InfoPath project to a Visual Studio 2005 Tools for Office InfoPath project =

Article ID: 926264

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office InfoPath 2007

-



SYMPTOMS
When you convert a Microsoft Visual Studio 2003 Tools for Office InfoPath project to a Visual Studio 2005 Tools for Office InfoPath project, all the non-default references are removed. Additionally, when you try to build the project, you receive an error message that resembles the following:

The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?)



WORKAROUND
To work around this problem, re-add any reference that is removed during the conversion process.



Steps to reproduce this problem
 Create a Visual Studio 2003 Tools for Office InfoPath project. Click to create a new form template. Add a button control to the form template. Double-click the button. In the Button Properties dialog box, click Edit Form Code. In the Solution Explorer window, right-click References, and then select Add Reference. On the .NET tab, select System.Xml, and then click OK to add the reference to the project.</li> At the top of the code window, add the following statement:

using System.Xml;

Note For Microsoft Visual Basic .NET, add the following statement:

Imports System.Xml;

</li> Build and then save the project.</li> On a computer that is running Visual Studio 2005 and the updated Visual Studio Tools for Office InfoPath Toolkit, double-click the .sln file.</li> On the first screen of the Visual Studio Conversion Wizard, click Finish, and then click Close.</li> On the Build menu, click Build . You receive the error message that is mentioned in the &quot;Symptoms&quot; section.

Note  is the placeholder for the name of the solution.</li></ol>

Additional query words: IP2007 InfoPath2007

Keywords: kberrmsg kbtshoot kbexpertiseinter kbprb KB926264

-

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

© Microsoft Corporation. All rights reserved.