PC Review


Reply
Thread Tools Rate Thread

Problem with XmlSerializer dlls

 
 
Richard
Guest
Posts: n/a
 
      10th Jul 2009
In my app I serialize to save some data. I have run into the problem where
the temporary dll created and compiled on the fly is not found and my app
fails. This appears to be related to doing the serialzation in response to
the user logging off and my app getting the message to shutdown. The app
saves config and works fine most of the time but fails sometimes when it
can't find the temp dll.

Now I have modified my VS2005 project to use sgen to build the serialization
dll at compile time in the hopes of avoiding the on the fly compile. The sgen
runs and creates "myfile.xmlserializers.dll" and this looks fine. However,
when the app runs and its time to serialize, my app tries to load
"myfile.xmlserializers.-10928561.dll" and since the file was created as
myfile.xmlserializers.dll, the bind fails. If I rename the dll to inlcude the
funny number, the dll loads but then the bind fails because the name inside
the dll apparently does not have that number.

Can anyone tell me what is going on here? What is that number that Vb.net is
attaching to the serializer dll name that fails to match the physicall dll
name? If vb wants to use this name, why does sgen not appear to know about
it? Why in extensive online discussions of this technique, is this strange
dll name not mentioned (except for one case where another person was getting
this strange dll name but it did not seem to pose a problem as that person
was discussing a problem different than not binding)?

Help!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registering DLLs - Unmanaged and Managed DLLs gopal Microsoft C# .NET 3 28th Aug 2006 04:32 PM
Shared DLLs from Compact Framework drag unneccessary DLLs =?Utf-8?B?R2FyeSBWYXJnYQ==?= Microsoft Dot NET 1 31st Jan 2005 02:17 PM
XmlSerializer Namespace problem Alexis Microsoft Dot NET 0 10th Nov 2004 11:30 PM
XmlSerializer problem (bug,virus??) Dirk Reske Microsoft C# .NET 2 6th Apr 2004 12:52 PM
Problem with XMLSerializer David Pendleton Microsoft VB .NET 3 11th Dec 2003 12:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:48 AM.