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 problem

Deserialization problem

Scheduled Pinned Locked Moved C#
helpjsonquestion
3 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.
  • R Offline
    R Offline
    Roman Shchugarev
    wrote on last edited by
    #1

    Hi! I have the following problem: I have two application one of them serializes a class(serialization is OK a can Deserialize it in this app too) The problem is that when I am trying to Deserialize a class from file using the second application, i am getting FileNotFound error. What can be wrong? I am using Binary formmaters. Looking through the serialized file I found that the name of programm i also serialized and probably that name dont let another program to deserialize the class?

    M 1 Reply Last reply
    0
    • R Roman Shchugarev

      Hi! I have the following problem: I have two application one of them serializes a class(serialization is OK a can Deserialize it in this app too) The problem is that when I am trying to Deserialize a class from file using the second application, i am getting FileNotFound error. What can be wrong? I am using Binary formmaters. Looking through the serialized file I found that the name of programm i also serialized and probably that name dont let another program to deserialize the class?

      M Offline
      M Offline
      marcossl
      wrote on last edited by
      #2

      The problem seems to be finding that file, not the object serialization. Have you written the right location of the file? have you used "\\" (double slash) in the string instead of simply "\", that's a very common error

      R 1 Reply Last reply
      0
      • M marcossl

        The problem seems to be finding that file, not the object serialization. Have you written the right location of the file? have you used "\\" (double slash) in the string instead of simply "\", that's a very common error

        R Offline
        R Offline
        Roman Shchugarev
        wrote on last edited by
        #3

        No it is not the case, there are two progs, and File not found message is raised during serialization proccess not stream opening, it is also said that he was searching for the program that created that file.

        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