作者fillmore (.......................)
看板C_Sharp
標題[問題] SerializationException 的問題
時間Mon Jan 22 07:06:18 2007
原始碼 :
http://www.qykk.com/inc/news/20050727/15174310817.asp
Server端沒有問題
但是client端在執行的時候會出現 :
未處理的例外狀況: System.Runtime.Serialization.SerializationException: 未將型別
'P2PClient.P2P.WellKnown.C2S.CSMessage' <於組件'P2PClient, Version-1.0.0.0,
Culture=neutral, PublicKeyToken=null' 中> 標記為可序列化
不過在CSMessage前加了[Serializable]還是沒有用不知道為什麼@@?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.128.160
推 sheauren:P2PClient 標記 [Serializable] ? 01/22 09:55
推 fillmore:the same 01/22 10:53
推 saitoh:CSMessage裡面有property是不能serialize的class嗎? 01/22 14:12