Windows Phone 7 base Template Deactive Serialize Error

摘要:Windows Phone 7 base Template Deactive Serialize Error

分享一個怪到不行的問題~ 最近維護了某個WP的案子並加上不少新功能。其中有個物件是要用來做Group的功能!但不打算使用IGroup去做結果很讓人意外的是功能都一切正常在TomeStone的時候會出現

A first chance exception of type 'System.Runtime.Serialization.InvalidDataContractException' occurred in System.Runtime.Serialization.ni.dll
An exception of type 'System.Runtime.Serialization.InvalidDataContractException' occurred in System.Runtime.Serialization.ni.dll and wasn't handled before a managed/native boundary

一直找不出原因...最終把Constructor(建構子)拿掉就正常了! 似乎跟C#的Serialize有關係,目前查證中...