TypeNotSerializable参数:WCF中的异常
我们在Silverlight、WCF RIA和实体框架中有一个应用程序。 自从我在后端的类中添加了一个属性,该类的类型为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
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
,这会导致迭代器在序列化时仍在结构中。谢谢。。从没想过!