Click here to Skip to main content
16,018,418 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralSerializable And Deserialize Pin
javad_200529-Feb-08 4:17
javad_200529-Feb-08 4:17 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery29-Feb-08 6:39
Mark Salsbery29-Feb-08 6:39 
GeneralRe: Serializable And Deserialize Pin
Paul Conrad29-Feb-08 8:03
professionalPaul Conrad29-Feb-08 8:03 
GeneralRe: Serializable And Deserialize Pin
javad_20051-Mar-08 3:41
javad_20051-Mar-08 3:41 
GeneralRe: Serializable And Deserialize Pin
javad_20051-Mar-08 20:05
javad_20051-Mar-08 20:05 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 12:13
Mark Salsbery4-Mar-08 12:13 
GeneralRe: Serializable And Deserialize Pin
javad_20054-Mar-08 20:23
javad_20054-Mar-08 20:23 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 20:31
Mark Salsbery4-Mar-08 20:31 
The problem is, the same assembly needs to be used to deserialize as the one that serialized it.

There's ways around this though, if you don't want to keep a separate assembly to maintain
on both ends.

Please post the EXACT exception message (entirely) and I'll show you an example...If you'd like.

You can get the message from the exception by wrapping your deserialize code in a try block and
adding something like
...    
    catch ( SerializationException^ e ) 
    {
        Console::WriteLine( "Failed to deserialize. Reason: {0}", e->Message );
        //throw;
    }


Mark






Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Serializable And Deserialize Pin
javad_20054-Mar-08 23:01
javad_20054-Mar-08 23:01 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:04
mentorGiorgi Dalakishvili4-Mar-08 21:04 
GeneralRe: Serializable And Deserialize Pin
Mark Salsbery4-Mar-08 21:07
Mark Salsbery4-Mar-08 21:07 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili4-Mar-08 21:14
mentorGiorgi Dalakishvili4-Mar-08 21:14 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 2:19
javad_20055-Mar-08 2:19 
GeneralRe: Serializable And Deserialize Pin
Giorgi Dalakishvili5-Mar-08 7:08
mentorGiorgi Dalakishvili5-Mar-08 7:08 
GeneralRe: Serializable And Deserialize Pin
javad_20055-Mar-08 21:57
javad_20055-Mar-08 21:57 
GeneralQueue Problem Pin
gman200829-Feb-08 3:28
gman200829-Feb-08 3:28 
GeneralRe: Queue Problem Pin
led mike29-Feb-08 4:22
led mike29-Feb-08 4:22 
Questionc++/cli asynchronous socket communication [solved] Pin
Member 454227228-Feb-08 21:44
Member 454227228-Feb-08 21:44 
GeneralRe: c++/cli asynchronous socket communication Pin
led mike29-Feb-08 4:05
led mike29-Feb-08 4:05 
GeneralRe: c++/cli asynchronous socket communication Pin
Member 45422722-Mar-08 17:50
Member 45422722-Mar-08 17:50 
GeneralRe: c++/cli asynchronous socket communication Pin
Mark Salsbery29-Feb-08 6:48
Mark Salsbery29-Feb-08 6:48 
GeneralRe: c++/cli asynchronous socket communication Pin
Member 45422722-Mar-08 18:08
Member 45422722-Mar-08 18:08 
GeneralRe: c++/cli asynchronous socket communication Pin
teejayem4-Mar-08 6:56
teejayem4-Mar-08 6:56 
QuestionRe: c++/cli asynchronous socket communication (solved but prompt out strange error) [modified] Pin
Member 45422727-Mar-08 20:07
Member 45422727-Mar-08 20:07 
GeneralRe: c++/cli asynchronous socket communication (solved but prompt out strange error) Pin
Mark Salsbery10-Mar-08 9:02
Mark Salsbery10-Mar-08 9:02 

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.