Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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?)

↑ Back to the top


Workaround

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

↑ Back to the top


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.

↑ Back to the top


Keywords: KB926264, kbprb, kbexpertiseinter, kbtshoot, kberrmsg

↑ Back to the top

Article Info
Article ID : 926264
Revision : 2
Created on : 11/3/2006
Published on : 11/3/2006
Exists online : False
Views : 229