Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
QuestionXML Heeeelp ! Pin
kerberos_prozac15-Nov-05 6:25
kerberos_prozac15-Nov-05 6:25 
AnswerRe: XML Heeeelp ! Pin
Nick Parker15-Nov-05 18:24
protectorNick Parker15-Nov-05 18:24 
QuestionC#.Net - A Deserialization problem! Help!!! Pin
luckykhalid15-Nov-05 5:32
luckykhalid15-Nov-05 5:32 
AnswerRe: C#.Net - A Deserialization problem! Help!!! Pin
Russell Jones15-Nov-05 5:49
Russell Jones15-Nov-05 5:49 
GeneralRe: C#.Net - A Deserialization problem! Help!!! Pin
luckykhalid15-Nov-05 20:43
luckykhalid15-Nov-05 20:43 
GeneralRe: C#.Net - A Deserialization problem! Help!!! Pin
Russell Jones16-Nov-05 2:41
Russell Jones16-Nov-05 2:41 
AnswerRe: C#.Net - A Deserialization problem! Help!!! Pin
Rob Philpott15-Nov-05 8:53
Rob Philpott15-Nov-05 8:53 
AnswerRe: C#.Net - A Deserialization problem! Help!!! Pin
Marc Clifton15-Nov-05 13:13
mvaMarc Clifton15-Nov-05 13:13 
luckykhalid wrote:
Another solution to this problem is that I make a separate .dll for all my custom objects that need to be communicated between server/client and place the same copy of that dll at both the sides.


This is exactly the "typical" solution. BTW, take a look at what the BinaryFormatter is producing. It's slow, and it's a hog. As someone else posted to a question I was asking, a "bool" (one byte) takes 256 bytes when BinaryFormat'ted.

If you can at all avoid the BinaryFormatter, do so. It's intended for reflection deserialization, thus it retains type and version information, which is why you are getting your problem.

If you are simply serializing native types, like ints, strings, etc., I would suggest writing your own serialization. I have RawSerializer class that I've written, that will eventually become an article. If you're interested, send me an email and I'll send you the code. It also handles structs like Guid, DateTime, and your own structs, as long as the contents are native types.

Marc

VS2005 Tips & Tricks -- contributions welcome!
Questioninjecting code into another process Pin
Keith Vitali15-Nov-05 5:26
Keith Vitali15-Nov-05 5:26 
QuestionThreading slows down whole application Pin
smurfy3415-Nov-05 5:22
smurfy3415-Nov-05 5:22 
AnswerRe: Threading slows down whole application Pin
Andy Brummer15-Nov-05 5:46
sitebuilderAndy Brummer15-Nov-05 5:46 
GeneralRe: Threading slows down whole application Pin
smurfy3415-Nov-05 8:16
smurfy3415-Nov-05 8:16 
GeneralRe: Threading slows down whole application Pin
Andy Brummer15-Nov-05 11:32
sitebuilderAndy Brummer15-Nov-05 11:32 
AnswerRe: Threading slows down whole application Pin
kourvoisier15-Nov-05 10:36
kourvoisier15-Nov-05 10:36 
GeneralRe: Threading slows down whole application Pin
Robert Rohde15-Nov-05 11:16
Robert Rohde15-Nov-05 11:16 
GeneralRe: Threading slows down whole application Pin
kourvoisier15-Nov-05 11:27
kourvoisier15-Nov-05 11:27 
GeneralRe: Threading slows down whole application Pin
Andy Brummer15-Nov-05 11:37
sitebuilderAndy Brummer15-Nov-05 11:37 
QuestionARRGH!! Events are making me go bald Pin
Tom Wright15-Nov-05 5:20
Tom Wright15-Nov-05 5:20 
AnswerRe: ARRGH!! Events are making me go bald Pin
Russell Jones15-Nov-05 5:45
Russell Jones15-Nov-05 5:45 
GeneralRe: ARRGH!! Events are making me go bald Pin
Tom Wright15-Nov-05 6:48
Tom Wright15-Nov-05 6:48 
GeneralRe: ARRGH!! Events are making me go bald Pin
Tom Wright15-Nov-05 7:20
Tom Wright15-Nov-05 7:20 
Questiondatagrid question Pin
tadhg8815-Nov-05 5:02
tadhg8815-Nov-05 5:02 
AnswerRe: datagrid question Pin
AETaylor17-Nov-05 19:50
AETaylor17-Nov-05 19:50 
QuestionAppDomain scopes Pin
Den2Fly15-Nov-05 4:34
Den2Fly15-Nov-05 4:34 
AnswerRe: AppDomain scopes Pin
Andy Brummer15-Nov-05 11:45
sitebuilderAndy Brummer15-Nov-05 11:45 

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.