当我们在odata上运行linq查询时,我们收到以下错误消息
“处理响应流时出错。服务器因以下情况而失败 消息:\ r \ n处理此请求时发生错误。“
详细说明如
System.Data.Services.Client.Materialization.FeedAndEntryMaterializerAdapter.TryRead()
System.Data.Services.Client.Materialization.FeedAndEntryMaterializerAdapter.TryStartReadFeedOrEntry()
System.Data.Services.Client.Materialization.FeedAndEntryMaterializerAdapter.TryReadEntry(MaterializerEntry& entry)
System.Data.Services.Client.Materialization.FeedAndEntryMaterializerAdapter.<LazyReadEntries>d__0.MoveNext()
System.Data.Services.Client.Materialization.FeedAndEntryMaterializerAdapter.Read()
System.Data.Services.Client.Materialization.ODataReaderEntityMaterializer.ReadNextFeedOrEntry()
System.Data.Services.Client.Materialization.ODataEntityMaterializer.ReadImplementation()
at System.Data.Services.Client.Materialization.ODataMaterializer.Read()
at System.Data.Services.Client.MaterializeAtom.MoveNextInternal()
at System.Data.Services.Client.MaterializeAtom.MoveNext()
at System.Linq.Enumerable.<CastIterator>d__94`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
我不明白上面的错误。请帮我确定这个错误的解决方案。我的代码是:
var t1 = _odataOEntities.ViewGetTicketDetails.AddQueryOption("$filter", Filter).Execute().ToList();