Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

deserialization problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dante - 04 May 2004 00:18 GMT
hi,

i have a problem deserializing an object. that object is an arraylist
wich has customized classes stored. these classes(dlls) are stored in
a subfolder of the mainprogram. serialization is ok, but when i try to
deserilize it, the program is not able to locate the dll. my question
is, how do i provide information to the formater (that i am using to
deserialize the class) about the location of the dll that is needed
for the deserialization?

thanks in advance,
Dante
Jakob Christensen - 04 May 2004 09:16 GMT
Hi Dante

Have you tried using the event AppDomain.AssemblyResolve or appending a private assembly path using AppDomain.AppendPrivatePath?  The AssemblyResolve event occurs when loading an assembly fails.  By registering an event handler for this event you can load the right assembly "manually"

Regards, Jakob.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.