|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
random dll nameswhen I call the Constructor on XMLSerializer I get a System.IO.FilenotFoundException in mscorlib.dll quote Additional information: File or assembly name ldvld7z2.dll, or one of its dependencies, was not found. /quote The odd thing is each time i run the app the name of the file e.g. ldvld7z2.dll viqr5fl6.dll mnu_zic1.dll 6uqb3zc3.dl changes, it appears to be completely randomly generated and never a name I have seen before. The only consistent thing is that it is always an 8 chracter file name and the extension is .dll ! any ideas? guy guy <g**@discussions.microsoft.com> wrote:
Show quote > I have a VB2003 app (very simple) that runs on XP SP2 Could you post a short but complete program which demonstrates the> > when I call the Constructor on XMLSerializer I get a > System.IO.FilenotFoundException in mscorlib.dll > > quote > > Additional information: File or assembly name ldvld7z2.dll, or one of its > dependencies, was not found. > > /quote > The odd thing is each time i run the app the name of the file e.g. > > ldvld7z2.dll > viqr5fl6.dll > mnu_zic1.dll > 6uqb3zc3.dl > > changes, it appears to be completely randomly generated and never a name I > have seen before. The only consistent thing is that it is always an 8 > chracter file name and the extension is .dll ! problem? See http://www.pobox.com/~skeet/csharp/complete.html for details of what I mean by that. My guess is that the XmlSerializer is creating a new temporary assembly behind the scenes for you, to do the serialization, but for some reason something goes wrong. We'll know more when we can reproduce it. -- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet If replying to the group, please do not mail me too There's a very useful article on MSDN that explains common problems
encountered when using XML Serialization and ways to work out what is going wrong. The Article is called "Troubleshooting Common Problems with the XmlSerializer" and can be found online at http://msdn2.microsoft.com/en-us/library/aa302290.aspx Hope this helps, Nick Hall |
|||||||||||||||||||||||