Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Deserialization Issue

Deserialization Issue

Scheduled Pinned Locked Moved C#
helptutorialquestionannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    al3xutzu00
    wrote on last edited by
    #1

    Hello Guys, I have an issue with Deserialization. I have 2 Projects and I want to extport data to a binary file (serialize) in the first Project, and i want to read that date using the second application Deserialize. The first Aplication will be given to hte end user, and will generate a Binary file that i want to read using the Admin application (the second one). When i try to deserialize i receive this error: "Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'." I think i know the cause of the issue. The binary formatter puts the Application name,version and info in the file when it serilizes it, but i don't know how to bypass this. Any suggestions?:confused: Kind regards, Alex

    “Be the change you want to see in the world.”

    G 1 Reply Last reply
    0
    • A al3xutzu00

      Hello Guys, I have an issue with Deserialization. I have 2 Projects and I want to extport data to a binary file (serialize) in the first Project, and i want to read that date using the second application Deserialize. The first Aplication will be given to hte end user, and will generate a Binary file that i want to read using the Admin application (the second one). When i try to deserialize i receive this error: "Unable to find assembly 'Application Timing', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'." I think i know the cause of the issue. The binary formatter puts the Application name,version and info in the file when it serilizes it, but i don't know how to bypass this. Any suggestions?:confused: Kind regards, Alex

      “Be the change you want to see in the world.”

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      There are two options: 1. Put the class definition in a separate assembly and deploy it in both applications 2. Use SerializationBinder. Here is an example: Draw with Mouse[^]

      Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups