FIX: "Specify a valid .NET type name for this root node" error message when you add a Web reference to a WSDL file in BizTalk Server 2004 (840112)



The information in this article 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 "PartnerABC.Response" - 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.

Modification Type:MajorLast Reviewed:4/13/2004
Keywords:kberrmsg kbprb KB840112 kbAudDeveloper