当前位置: 代码迷 >> Web Service >> 无法加载为扩展“contextPropagationElement”注册的类型 请教怎么加载呢?
  详细解决方案

无法加载为扩展“contextPropagationElement”注册的类型 请教怎么加载呢?

热度:148   发布时间:2012-12-14 10:33:08.0
无法加载为扩展“contextPropagationElement”注册的类型 请问如何加载呢???
搭WCF时,CLIENT端的配置文件总是不对,一执行到HelloWordClient client = new HelloWordClient(),调用SERVICE时,就报错如下:
无法加载为扩展“contextPropagationElement”注册的类型“Artech.ContextPropagation.ContextPropagationBehaviorElement, Artech.ContextPropagation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”。
请高人指点一下...

------解决方案--------------------
自己顶一下,未得其解.
------解决方案--------------------
我也要找解决这个问题的方法啊,您解决了吗?我的是在wcf 数据压缩传输的时候配置文件里遇到的问题。
------解决方案--------------------
可能是程序集信息没写对,可以使用如下的代码来确定:
Type t = typeof(MessageLibrary.CompressionTextEncodingElement);
Console.WriteLine(t.AssemblyQualifiedName);

t.AssemblyQualifiedName的内容就是程序集的信息,我这可以加载成功。