Log in

View Full Version : Ask : Error XML Serializer


Darkc0der
20th November 2011, 10:09 AM
Misi agan" semua...

Saya masih newbie nih di ASP.NET..

Mau nanya nih....



Kemaren ane bikin project pake web service...




Quote:





gimana cara buat ngambil database dari web service y??? :tanya:






Quote:





Trus ane tambahin koding :




Quote:





private Database _db = new Database();



[WebMethod]

public Database GetDatabase()

{ return _db; }





NB : Database -> Data Context



Nah, waktu di-build langsung keluar eror...




Quote:





To be XML serializable, types which inherit from ICollection must have an implementation of Add(System.Data.Linq.ObjectChangeConflict) at all levels of their inheritance hierarchy. System.Data.Linq.ChangeConflictCollection does not implement Add(System.Data.Linq.ObjectChangeConflict).











Gimana y gan buat benerinnya??? :homo:



Thanks...

</div>