Microsoft KB Archive/840112

= FIX: &quot;Specify a valid .NET type name for this root node&quot; error message when you add a Web reference to a WSDL file in BizTalk Server 2004 =

Article ID: 840112

Article Last Modified on 4/13/2004

-

APPLIES TO


 * Microsoft BizTalk Server 2004 Developer Edition
 * Microsoft BizTalk Server 2004 Enterprise Edition
 * Microsoft BizTalk Server 2004 Partner Edition
 * Microsoft BizTalk Server 2004 Standard Edition

-





SYMPTOMS
In Microsoft BizTalk Server 2004, if you add a Web reference to a Web Service Description Language (WSDL) file that contains an element type definition, and the name of the element type definition contains a period (.) character, the name of the generated C# class also contains the period character.

Because name of the generated C# class contains the period character, the C# class does not compile correctly. When this problem occurs, you receive an error message that is similar to the following:

E:\Develop\WS\Web References\localhost\Reference.xsd Node &quot;PartnerABC.Response&quot; - Specify a valid .NET type name for this root node. The current .NET type name of this root node is invalid (it is a reserved BizTalk Keyword or is an invalid C# identifier).



RESOLUTION
To resolve this problem, double-click the error message, and then change the Rootnode Type Name property to a valid Microsoft .NET Framework type name. For example, you can replace the period character with an underscore (_) character. Then rebuild the project.



STATUS
This behavior is by design.

Keywords: kberrmsg kbprb KB840112

-

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

© Microsoft Corporation. All rights reserved.