0
我使用Silverlight 4 RIA Services和SQL Server 2008,結果查看=類型
我們使用存儲過程返回一些數據,我們在DataGrid中顯示,當issummary = 0 我們使用同一個存儲過程返回數據,摘要時issummary = 1
當issummary = 0的存儲過程中的數據返回,但當issummary = 1,則trowing一個錯誤說
Results View = The type 'VSO.Models.Server.PFO' exists in both 'VSO.Web.dll' and 'DataContractSurrogates_451c5697-49be-4ec5-9d42-89486ff684a6'
在designer.cs文件中的
。
,並在domainservice.cs鑄造例外文件
指定的轉換是無效的。
擴展:
at System.Data.DataTableReader.GetGuid(Int32 ordinal)
at System.Data.Linq.SqlClient.ObjectReaderCompiler.Rereader.GetGuid(Int32 i)
at Read_PFO(ObjectMaterializer`1)
at System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at VSO.DomainServices.Server.PFODomainService.PFOSelectByStores(String storeIds, Int32 filter, Int32 pageIndex, Int32 pageSize, Guid userId, String sortColumn, String productIDs, Boolean isSummary, Int32& totalRows) in C:\Hood_VSO\.VSO\.VSO.Web\Services\PFODomainService.cs:line 820
我要去哪裏錯了,任何人都可以請幫我出這一點,非常感謝你
由於wcf ria服務處理DataContract的方式,調試器通常報告它的錯誤是調試器或Web服務器本身引發的錯誤嗎? – mCasamento 2013-03-14 10:56:14