之前没用过c#和.net 测试有个wp的sdk版本,将工作中遇到的问题记录一下。
1、“WinRT 信息: Error trying to serialize the value to be written to the application data store”异常
“System.Exception”类型的第一次机会异常在 mscorlib.ni.dll 中发生
WinRT 信息: Error trying to serialize the value to be written to the application data store
“UMTADemo.WindowsPhone.exe”(CoreCLR: .): 已加载“C:\windows\system32\SYSTEM.NI.DLL”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
Data of this type is not supported.
WinRT 信息: Error trying to serialize the value to be written to the application data store
“UMTADemo.WindowsPhone.exe”(CoreCLR: .): 已加载“C:\windows\system32\SYSTEM.NI.DLL”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
Data of this type is not supported.
Error trying to serialize the value to be written to the application data store
原因分析:可能是使用List造成的异常
参考:
本文记录了在使用Windows Phone SDK过程中遇到的WinRT序列化异常问题,具体表现为尝试将值写入应用程序数据存储时失败。分析指出,此异常可能由List的使用引起,并提供了相应的解决思路及参考资料。
558

被折叠的 条评论
为什么被折叠?



