Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get processes even if their name changed? Pin
Luc Pattyn31-Jan-08 22:22
sitebuilderLuc Pattyn31-Jan-08 22:22 
GeneralRe-initialization of the graph Pin
B!Z30-Jan-08 21:28
B!Z30-Jan-08 21:28 
GeneralRe: Re-initialization of the graph Pin
pmarfleet30-Jan-08 21:45
pmarfleet30-Jan-08 21:45 
GeneralPage reloaded when ContentType = "Application/vnd.msword" [modified] Pin
JohnAneston30-Jan-08 20:41
JohnAneston30-Jan-08 20:41 
Questionhow to display the tree nodes and its atrributes in the list format in multiline textbox Pin
samidhas30-Jan-08 20:28
samidhas30-Jan-08 20:28 
GeneralCreating Custom Emails from C# code Pin
SB 30-Jan-08 20:03
SB 30-Jan-08 20:03 
GeneralRe: Creating Custom Emails from C# code Pin
Ed.Poore30-Jan-08 23:00
Ed.Poore30-Jan-08 23:00 
GeneralRegarding certification.... Pin
tasumisra30-Jan-08 19:01
tasumisra30-Jan-08 19:01 
GeneralWrong forum Pin
pmarfleet30-Jan-08 21:47
pmarfleet30-Jan-08 21:47 
GeneralConnecting C#.Net to SQL Server 2000 Pin
klaydze30-Jan-08 17:31
klaydze30-Jan-08 17:31 
GeneralRe: Connecting C#.Net to SQL Server 2000 Pin
Rocky#30-Jan-08 20:19
Rocky#30-Jan-08 20:19 
GeneralRe: Connecting C#.Net to SQL Server 2000 Pin
Ashfield31-Jan-08 0:06
Ashfield31-Jan-08 0:06 
GeneralCatching specialty keys from keyboard [modified] Pin
Jordanwb30-Jan-08 10:16
Jordanwb30-Jan-08 10:16 
GeneralRe: Catching specialty keys from keyboard Pin
DaveyM6930-Jan-08 10:43
professionalDaveyM6930-Jan-08 10:43 
GeneralRe: Catching specialty keys from keyboard Pin
Jordanwb30-Jan-08 10:54
Jordanwb30-Jan-08 10:54 
GeneralRe: Catching specialty keys from keyboard Pin
TJoe30-Jan-08 10:57
TJoe30-Jan-08 10:57 
GeneralRe: Catching specialty keys from keyboard Pin
Jordanwb30-Jan-08 11:32
Jordanwb30-Jan-08 11:32 
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!

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.