Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/926264

From BetaArchive Wiki
Knowledge Base


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.

MORE INFORMATION

Steps to reproduce this problem

  1. Create a Visual Studio 2003 Tools for Office InfoPath project.
  2. Click to create a new form template.
  3. Add a button control to the form template.
  4. Double-click the button.
  5. In the Button Properties dialog box, click Edit Form Code.
  6. In the Solution Explorer window, right-click References, and then select Add Reference.
  7. On the .NET tab, select System.Xml, and then click OK to add the reference to the project.
  8. 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;

  9. Build and then save the project.
  10. On a computer that is running Visual Studio 2005 and the updated Visual Studio Tools for Office InfoPath Toolkit, double-click the .sln file.
  11. On the first screen of the Visual Studio Conversion Wizard, click Finish, and then click Close.
  12. On the Build menu, click Build SolutionName. You receive the error message that is mentioned in the "Symptoms" section.

    Note SolutionName is the placeholder for the name of the solution.



Additional query words: IP2007 InfoPath2007

Keywords: kberrmsg kbtshoot kbexpertiseinter kbprb KB926264