EF自我跟踪Silverlight WCf [英] EF self tracking Silverlight WCf

查看:200
本文介绍了EF自我跟踪Silverlight WCf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好
我有一个silverlight4 + .net 4.0应用程序,我正在使用自我跟踪实体。
在应用程序中,我有一个silverlight项目,其中包含由EF自我跟踪模板生成的实体。
该项目由wcf服务和客户端共享,以便更改跟踪工作。
所有内容都很好,但是当我运行我的服务是获取异常
无法加载文件或程序集System.Runtime.Serialization,Version = 2.0.5.0,Culture = neutral,PublicKeyToken = 7cec85d7bea7798e或一个的依赖。系统无法找到指定的文件。

Hi I have a silverlight4 + .net 4.0 application where i am using self tracking entities. In the application i have a silverlight project which contains the entities generated by EF self tracking template. This project is being shared by the wcf service and the client so that the change tracking works. everything builds fine but when i run my service is get the exception Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

任何帮助都很受谴责

感谢

推荐答案

必须与映射到客户端的实体创建一个单独的项目。所以2个项目包含相同的实体。一个映射到服务器,一个映射到客户端,每个使用不同版本的Serialization dll

Had to create a separate project with the entities which was mapped to client side . So 2 projects with contain the same entities. One is mapped to server and one mapped to client and each using different versions of Serialization dll

这篇关于EF自我跟踪Silverlight WCf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆