Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / WCF

Error: The Name property must be a non-empty string

0.00/5 (No votes)
22 Nov 2011CPOL 13.8K  
Error: The Name property must be a non-empty string

This issue occurs when OperationContract name attribute is defined as empty as follows:
C#
[OperationContract(Name = "")]


To fix it provide string for OperationContract name attribute as follows.
C#
[OperationContract(Name = "SomeString")]

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)