WCF示例期间发生错误 [英] Error occurs during WCF example
本文介绍了WCF示例期间发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试了wcf的一个小例子,但出现错误,因为
ContractDescription"hello"的操作为零;合同必须至少进行一项操作.
请有人帮我
I tried an small example of wcf But an error occurs as
ContractDescription ''hello'' has zero operations; a contract must have at least one operation.
plz somebody help me
推荐答案
您是否在服务实现的接口中声明了具有[OperationContract]属性的方法,并实现了该方法?
这是基本的官方" Microsoft教程:
入门教程 [
Have you declared a method with the [OperationContract] attribute in the interface for the service implementation, and implmented it?
Here is the basic "official" microsoft tutorial:
Getting Started Tutorial[^]
Regards
Espen Harlinn
这篇关于WCF示例期间发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文