怎么解决这个问题

呼哈呼哈55551111 2011-06-16 03:29:51
The message with Action 'http://tempuri.org/IService2/getName' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
...全文
219 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
一样的。我检查过了。
laolaolai 2011-06-16
  • 打赏
  • 举报
回复
单纯从字面说是发送端和接收端的契约不匹配。

那你检查你定义的接口在发送端和接收端都一致吗?
  • 打赏
  • 举报
回复
这个我没用使用配置文件,是吧配置信息储存在了sqlite里了 然后启动时候动态创建的服务.我用的是WSHttpBinding 我测试的时候把安全设置成了 None了啊。
子夜__ 2011-06-16
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name=" CalculatorService" >
<endpoint
<-- Leave the address blank to be populated by default-->
<--from the hosting environment,in this case IIS, so -->
<-- the address will just be that of the IIS Virtual -->
<--Directory.-->
address=""
<--Specify the binding type -->
binding="wsHttpBinding"
<--Specify the binding configuration name for that -->
<--binding type. This is optional but useful if you -->
<--want to modify the properties of the binding. -->
<--The bindingConfiguration name Binding1 is defined -->
<--below in the bindings element. -->
bindingConfiguration="Binding1"
contract="ICalculator" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="Binding1">
<-- Binding property values can be modified here. -->
<--See the next procedure. -->
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
子夜__ 2011-06-16
  • 打赏
  • 举报
回复
原因
This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver

暖枫无敌 2011-06-16
  • 打赏
  • 举报
回复
从这几句错误信息,大概是说你使用的WebService或WCF的发送端和接受端的契约不匹配
chengzq 2011-06-16
  • 打赏
  • 举报
回复
Check that sender and receiver have the same contract and the same binding
酷儿 2011-06-16
  • 打赏
  • 举报
回复
把错误抛出来 这个不是真正的错误

62,266

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧