Click here to Skip to main content
15,887,485 members
Articles / WCF
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
22 Nov 2011CPOL 13.6K  
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)



Comments and Discussions

 
-- There are no messages in this forum --