【问题标题】:WCF Service + Entity Framework: How to send an entity?WCF服务+实体框架:如何发送实体?
【发布时间】:2011-09-02 03:42:10
【问题描述】:

我在 WCF 服务中的一些方法从实体框架返回一个实体。由于该警告,我无法在我的 Windows Phone 7 应用程序中添加 Web 服务引用:

自定义工具警告:无法导入 wsdl:portType 详细信息:异常是 运行 WSDL 导入时抛出 延期: System.ServiceModel.Description.DataContractSerializerMessageContractImporter 错误:无法加载类型 'System.Runtime.Serialization.DataContractSet' 从组装 'System.Runtime.Serialization, 版本=2.0.5.0,文化=中性, PublicKeyToken=7cec85d7bea7798e'。 错误源的 XPath: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IBarnGameServiceNEW'] D:\MGameWindowsPhone7\Service References\ServiceReference3\Reference.svcmap

什么原因?

【问题讨论】:

    标签: wcf windows-phone-7 entity-framework-4


    【解决方案1】:

    不在管理员帐户下运行 Visual Studio。这对我有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-06-13
      • 1970-01-01
      • 1970-01-01
      • 2014-03-30
      • 1970-01-01
      相关资源
      最近更新 更多