Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TypeNotSerializable参数:WCF中的异常_Wcf_Wcf Ria Services - Fatal编程技术网

TypeNotSerializable参数:WCF中的异常

TypeNotSerializable参数:WCF中的异常,wcf,wcf-ria-services,Wcf,Wcf Ria Services,我们在Silverlight、WCF RIA和实体框架中有一个应用程序。 自从我在后端的类中添加了一个属性,该类的类型为List 在生产环境中,我们有时会遇到以下错误 [TypeNotSerializable] Arguments: System.Linq.Enumerable+<ExceptIterator>d__99`1[System.String] Debugging resource strings are unavailable. [TypeNotSerializable

我们在Silverlight、WCF RIA和实体框架中有一个应用程序。 自从我在后端的类中添加了一个属性,该类的类型为
List
在生产环境中,我们有时会遇到以下错误

[TypeNotSerializable] Arguments: System.Linq.Enumerable+<ExceptIterator>d__99`1[System.String] Debugging resource strings are unavailable.
[TypeNotSerializable]参数:System.Linq.Enumerable+d_u99`1[System.String]调试资源字符串不可用。
我试着包含一个
[KnownType(typeof(List))]
,但我们偶尔会遇到这个错误。请让我知道如何消除这个错误


谢谢

似乎有人在使用
IEnumerable。除了
并且没有调用
.ToList
,这会导致迭代器在序列化时仍在结构中。

谢谢。。从没想过!