我正在使用 silverlight 4 和 ria 服务..
我收到一个错误说:
类型“eLab.Web.SessionsHWFile”同时存在于“eLab.Web.dll”和“DataContractSurrogates_c96b3601-cd13-4049-93bb-e7b3f59a4fd9”中
where eLab.Web is the aspx web project that hosts the silverlight project, and SessionsHWFile is an edmx entity ,it's not a real table in DB, it's VIEW. I dragged a grid from the data source and doped it in XAML user control, and used a query to get the data from stored procedure in DB, but I'm getting the above error when I debug the code and expand the results view :
(source: 0zz0.com http://www10.0zz0.com/2010/07/26/22/244157379.jpg)
我这样做了,添加一个视图并从数据库中的 SP 获取结果,大约一百万次,直到这次什么都没有发生..
**我想我知道问题是..
我发现你不能用相同的名称命名两个“riaControls:DomainDataSource”,即使它们是不同的 xaml 页面。
老实说,我还不知道为什么,但这就是我解决问题的方法..
只需更改“riaControls:DomainDataSource”的名称属性...**
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)