Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: Catching specialty keys from keyboard Pin
Dan Neely31-Jan-08 2:47
Dan Neely31-Jan-08 2:47 
GeneralRe: Catching specialty keys from keyboard Pin
Jordanwb30-Jan-08 12:03
Jordanwb30-Jan-08 12:03 
GeneralDocking Panel under another Panel Pin
DSdragondude30-Jan-08 6:50
DSdragondude30-Jan-08 6:50 
GeneralRe: Docking Panel under another Panel Pin
TJoe30-Jan-08 6:54
TJoe30-Jan-08 6:54 
GeneralRe: Docking Panel under another Panel Pin
DSdragondude30-Jan-08 6:55
DSdragondude30-Jan-08 6:55 
GeneralRe: Docking Panel under another Panel Pin
TJoe30-Jan-08 6:58
TJoe30-Jan-08 6:58 
GeneralRe: Docking Panel under another Panel Pin
DSdragondude30-Jan-08 6:59
DSdragondude30-Jan-08 6:59 
GeneralDeserialization problems Pin
Bekjong30-Jan-08 3:25
Bekjong30-Jan-08 3:25 
Hi, I have a class I want to deserialize using the BinaryFormatter's Deserialize method. I never really had any problem with this but for some reason I'm now getting a very weird exception: The complaint is that the constructor of this particular class is missing, while I've obviously implemented it. This is what my code looks like:

[Serializable]
    public class IndexedBaseDataCollection : Dictionary<int, IBaseDataContainer>, IBaseDataContainer
    {
        public IndexedBaseDataCollection()
        {
        }
        .
        .
        // some more methods here
    }


And here's the exception I'm getting:

<br />
System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type 'Engineer.Data.IndexedBaseDataCollection' was not found. ---> System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type 'Engineer.Data.IndexedBaseDataCollection' was not found.<br />
   at System.Runtime.Serialization.ObjectManager.GetConstructor(Type t, Type[] ctorParams)<br />
   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)


I've tried using a construct that overrides the base() constructor but that doesn't seem to help at all. I can only guess this might have something to do with the Dictionary base class. All values of type IBaseDataContainer are perfectly serializable by the way. Any ideas?

Thans in advance.


Standards are great! Everybody should have one!

GeneralRe: Deserialization problems Pin
Skippums30-Jan-08 5:08
Skippums30-Jan-08 5:08 
GeneralRe: Deserialization problems Pin
Bekjong30-Jan-08 23:49
Bekjong30-Jan-08 23:49 
GeneralRe: Deserialization problems Pin
Not Active30-Jan-08 5:52
mentorNot Active30-Jan-08 5:52 
AnswerRe: Deserialization problems Pin
TJoe30-Jan-08 6:53
TJoe30-Jan-08 6:53 
GeneralXP Style Pin
topcatalpha30-Jan-08 3:04
topcatalpha30-Jan-08 3:04 
GeneralRe: XP Style Pin
topcatalpha30-Jan-08 4:23
topcatalpha30-Jan-08 4:23 
QuestionConstructing an wizard aplication... Pin
pcaeiro30-Jan-08 2:55
pcaeiro30-Jan-08 2:55 
GeneralRe: Constructing an wizard aplication... Pin
Bekjong30-Jan-08 3:35
Bekjong30-Jan-08 3:35 
GeneralRe: Constructing an wizard aplication... Pin
pcaeiro30-Jan-08 16:49
pcaeiro30-Jan-08 16:49 
GeneralRe: Constructing an wizard aplication... Pin
Bekjong30-Jan-08 23:50
Bekjong30-Jan-08 23:50 
GeneralExcel Cell character limitation Pin
michael_jhons30-Jan-08 2:29
michael_jhons30-Jan-08 2:29 
GeneralRe: Excel Cell character limitation Pin
eggsovereasy30-Jan-08 3:36
eggsovereasy30-Jan-08 3:36 
GeneralRe: Excel Cell character limitation Pin
michael_jhons30-Jan-08 3:46
michael_jhons30-Jan-08 3:46 
GeneralRe: Excel Cell character limitation Pin
eggsovereasy30-Jan-08 9:14
eggsovereasy30-Jan-08 9:14 
GeneralListViewItem.SubItems Problem Pin
half-life30-Jan-08 0:03
half-life30-Jan-08 0:03 
GeneralRe: ListViewItem.SubItems Problem Pin
Gareth H30-Jan-08 0:10
Gareth H30-Jan-08 0:10 
GeneralRe: ListViewItem.SubItems Problem Pin
half-life30-Jan-08 0:54
half-life30-Jan-08 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.