Wcf 无法添加Microsoft.ServiceModel.DomainServices.Hosting

Wcf 无法添加Microsoft.ServiceModel.DomainServices.Hosting,wcf,wcf-ria-services,Wcf,Wcf Ria Services,我正在尝试从非silverlight客户端访问RIA服务。在我的开发机器上,添加domainServices端点没有问题 <domainServices> <endpoints> <add name="soap" type="Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory, Microsoft.ServiceModel.DomainServices.

我正在尝试从非silverlight客户端访问RIA服务。在我的开发机器上,添加domainServices端点没有问题

<domainServices>
      <endpoints>
        <add name="soap" type="Microsoft.ServiceModel.DomainServices.Hosting.SoapXmlEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <!--<add name="JSON" type="Microsoft.ServiceModel.DomainServices.Hosting.JsonEndpointFactory, Microsoft.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />-->
      </endpoints>
</domainServices>

但是,临时服务器和DomainService上的同一配置会引发异常:

找不到方法: 'System.Collections.Generic.IEnumerable'1 System.ServiceModel.DomainServices.Server.DomainServiceDescription.get_ComplexTypes()

我已经验证了所有项目引用都已将Copy Local设置为true,并且

Microsoft.ServiceModel.DomainServices.Hosting

dll实际上位于web服务器上

更新:我应该补充一点,错误似乎发生在编译过程中: ServiceActivationException:由于编译期间出现异常,无法激活服务“…”。异常消息为:找不到方法:


我遗漏了什么?

mmm虚拟问题:生产服务器上是否已经安装了不同版本的WCF Ria Service Toolkit?@mCasameto,这不是一个愚蠢的问题,据我所知,答案是否定的,GAC中没有任何内容,DLL在部署中本地复制。我很想知道它的代码是从哪里来的,这样它就不能编译了。在服务器上安装RIA服务工具包就成功了,尽管我想我肯定GAC没有这个程序集。