Specify a valid .NET type name for this root node.The current .NET type of this root node is invalid


In current project I have to work on papiNet schema, an opensource schema used for paper indus07y, this schemas for it can be downloaded here . 

To start with, I created a project in visual studio and added PurchaseOrderV2R40 schema to it (which I downloaded from link mentioned above). To make sure all is ok with schema, I build the project and was encountered with errors for few nodes

"Specify a valid .NET type name for this root node.The current .NET type of this root node is invalid(it is reserved BizTalk Keyword or is an invalid C# identifier)"

as can be seen in below image.



The errors say that few mentioned nodes does not have valid .NET type name - it refers to RootNode TypeName property. As can be seen in image(marked in yellow), there is hyphen(-) used in RootNode TypeName and that is not allowed.

What to do:
As hypen is not allowed, I removed it  from all nodes having it and build the project -- all the errors were gone.


Note: I am not sure what implication will it have as the project progresses, I think there won't be any problem but if any then will update


ServerLess360



Comments

Popular posts from this blog

Run Android emulator and Android Studio on Azure VM using Hyper V

The request has both SAS authentication scheme and 'Bearer' authorization scheme. Only one scheme should be used

Azure AD Token Generator using .NET Core