当前位置: 代码迷 >> Web Service >> wcf synccomm的有关问题?
  详细解决方案

wcf synccomm的有关问题?

热度:338   发布时间:2012-04-11 17:42:33.0
wcf synccomm的问题???
我在网上下的这个源码,我本机的环境是vs2008 sqlserver 2008 sync framework2.0 2.1 1.0 都安了。服务器的webconfig中<gzipMessageEncoding innerMessageEncoding="textMessageEncoding" />这个节点引发异常

“无法加载为扩展“gzipMessageEncoding”注册的类型“Microsoft.ServiceModel.Samples.GZipMessageEncodingElement, GZipEncoder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”。”

已经引用GZipEncoder,不知为什么?后将这个节点屏蔽后,服务器端运行正常。

客户端运行成功后,当进行数据同步时提示

there was no endpoint listening at http:// that could accept the message.this is often caused by an incorect address or SOAP action.See InnerException,if present,for more details.

不知为什么提示没有这个端点的监听。不知哪位用过这个程序,指点一下,感激不尽,谢谢!

------解决方案--------------------
Microsoft.ServiceModel.Samples.GZipMessageEncodingElement, GZipEncoder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

这东西和你的.Net运行时版本是一致的么?
  相关解决方案