Results 1 to 16 of 16

Thread: serialize/deserialize problem [UnResolved]

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    serialize/deserialize problem [UnResolved]

    Hi!

    ok, new to this. awesome stuff!

    I am basically serializing objects in xml from a Server app to a client app. the client app takes this xml serialized object and deserializes it.

    yes, both ends have the EXACT SAME class I am working with.

    when the client tries to deserialize the object, I get an invalidoperationexception (nullreference) - no idea why.

    this is the stack trace:

    System.InvalidOperationException was unhandled
    Message="An error message cannot be displayed because an optional resource assembly containing it cannot be found"
    StackTrace:
    at System.Xml.Serialization.XmlSerializer.Deserialize()
    at System.Xml.Serialization.XmlSerializer.Deserialize()
    at System.Xml.Serialization.XmlSerializer.Deserialize()
    at SomeApp.IncomingData.DoHandleIncomingXml()
    at SomeApp.IncomingData.DoAnalyzeData()
    at SomeApp.Communication.DoListenToIncomingPort()
    I have only chosen to serialize some properties but not all, however this should be ok no?


    This problem has been resolved, this is the new problem:

    how do you read a string into a stream in order to pass it to the deserializer? Opening and writing to a file is not an option unfortunatly
    Last edited by Techno; Mar 12th, 2006 at 08:18 AM.

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width