Hi all,
I got a really bad headache with this exception. I have a class named
THECLASS which implements two static methods to provide externalization of
the object itself. One method is LOAD from file (deserializing) and the other
one is SAVE to file (Serializing). This class is in a DLL apart.
Ok, now i have a an app (called App1), from wich i call the SAVE method of
the object. Everything goes fine, and the object gets serialized into a file.
If i try to deserialize the object from App1, it gets deserialized without
problems, as seen here:
//Serialization in App1:
THECLASS c1=new THECLASS();
c1.SAVE(file); // -> OK!
//Deserialization in App1:
THECLASS c2=THECLASS.LOAD(file); -> OK!
NOW THE PROBLEM:
If i try to deserialize the object in another app, named App2, i get a
SerializationException with the message: Can't find the assembly App1
//In App2:
THECLASS c3=THECLASS.LOAD(file); -> SerializationException!!
Of course, THECLASS is in a DLL apart, referenced in both App1 and App2.
I dont know whats going on! PLEASE HELP!!!
Thanks in advance,
Mauri. 1 1120
OK Now i know what was happening: The problem was that THECLASS had two
events, suscribed to App1. If i desuscribe them before serializing, the
problem dissapears!!
"Maurice Asuar" wrote: Hi all,
I got a really bad headache with this exception. I have a class named THECLASS which implements two static methods to provide externalization of the object itself. One method is LOAD from file (deserializing) and the other one is SAVE to file (Serializing). This class is in a DLL apart.
Ok, now i have a an app (called App1), from wich i call the SAVE method of the object. Everything goes fine, and the object gets serialized into a file. If i try to deserialize the object from App1, it gets deserialized without problems, as seen here:
//Serialization in App1: THECLASS c1=new THECLASS(); c1.SAVE(file); // -> OK!
//Deserialization in App1: THECLASS c2=THECLASS.LOAD(file); -> OK!
NOW THE PROBLEM:
If i try to deserialize the object in another app, named App2, i get a SerializationException with the message: Can't find the assembly App1
//In App2: THECLASS c3=THECLASS.LOAD(file); -> SerializationException!!
Of course, THECLASS is in a DLL apart, referenced in both App1 and App2.
I dont know whats going on! PLEASE HELP!!!
Thanks in advance,
Mauri. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Oenone |
last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far.
I have an ASP.NET application that relies on several DLLs to work. Currently
in order to get my site working I have to put...
|
by: news.microsoft.com |
last post by:
I have two completely distinct ASP.NET (2.0) web applications. They share no
code, they have distinct web.config files, they don't even link to each
other. During development, they have lived...
|
by: yevvi |
last post by:
Hi,
We have a product with bunch of dlls which are now built with Visual
Studio 2003. We want to switch the build to use VS2005. I have read
that in VS2005 runtime libraries come as...
|
by: djhexx |
last post by:
Hi. We have an asp.net intranet application written in VB that uses
forms authentication for all it's pages. I have a C# asp.net
application that I just wrote. The company would like the C#...
|
by: Vincent Delporte |
last post by:
Hello
I'm about to write a prototype for a business application, but since
this my first real web application, I'm looking for a good book or
article that sums up the different issues web...
|
by: jeremy.todter |
last post by:
I have a question...obviously
I am developing an application, or two applications using c++ and
openGL. They involve a basic structure where approximately 70 percent
of the framework applies to...
|
by: ApexData |
last post by:
I am considering building some distributable commercial applications.
For about a year now, I have been using Access2000. This was my first
venture into object oriented database development. ...
|
by: GaryDean |
last post by:
I have serveral applications now running that are using the
MembershipProvider classes and they are each using their own security tables
in SQL Server 2005 instead of the express databases - they...
|
by: John |
last post by:
Hi
How can I send simple messages/command like "GotoClientRecord=1024" or
"GotoSupplierRecord=234" from a vb.net app to a) a vb.net winform app and b)
an MS Access app, all three running on the...
|
by: SAL |
last post by:
Hopefully someone will have a clue as to what is happening here. In our
office, we have both ColdFusion and ASP.NET applications. One of our new
developers has been installing ColdFusion 8 on the...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |