XmlSerializer Exception

G

Guest

I am trying to use the XmlSerializer object for the first time. The line which throws the exception at runtime is:

XmlSerializer serializer = new XmlSerializer(typeof(AxINIData));

The exception error it throws is:

"An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll - Additional information: File or assembly name fxcxl__f.dll, or one of its dependencies, was not found."

Can you tell me what this is?

Alex
 
P

Paul Glavich [MVP - ASP.NET]

The XMLSerializer creates a temporary assembly to make serialisation fast
and efficient. Perhaps it canot create this file in the directory. You can
either use a tool like filemon to see where its trying to create this file,
but I beleive its usually in the {drive}\Documents and
Settings\{username}\ApplicationData\Temp or something similar.

--
- Paul Glavich
Microsoft MVP - ASP.NET


Alex Maghen said:
I am trying to use the XmlSerializer object for the first time. The line
which throws the exception at runtime is:
XmlSerializer serializer = new XmlSerializer(typeof(AxINIData));

The exception error it throws is:

"An unhandled exception of type 'System.IO.FileNotFoundException' occurred
in mscorlib.dll - Additional information: File or assembly name
fxcxl__f.dll, or one of its dependencies, was not found."
 
G

Guest

HERE'S SOME MORE INFORMATION: The following is the output of the FileMon program with respect to the runtime FileNotFound Exception for the dynamically created DLL. The output contains some FileNotFound situations but seems to indicate that then file is created. So I can't seem to find the failure...


5445>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>OPEN>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>FILE NOT FOUND>>>Options: Open Access: All>>>

5461>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>OPEN>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>FILE NOT FOUND>>>Options: Open Access: All>>>

5477>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>CREATE>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Options: OverwriteIf Access: All>>>

5478>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>OPEN>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>FILE NOT FOUND>>>Options: Open Access: All>>>

5483>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>CLOSE>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>>>>

5487>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>OPEN>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Options: Open Access: All>>>

5488>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Attributes: A>>>

5489>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>SET INFORMATION >>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>FileBasicInformation>>>

5490>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5491>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>READ >>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>END OF FILE>>>Offset: 0 Length: 256>>>

5492>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>READ >>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>END OF FILE>>>Offset: 0 Length: 512>>>

5493>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5494>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>READ >>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>END OF FILE>>>Offset: 0 Length: 2>>>

5495>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5496>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5497>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5498>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5499>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Length: 0>>>

5500>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>CLOSE>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>>>>

5501>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>OPEN>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>Options: Open Access: All>>>

5502>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>QUERY INFORMATION>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>FileBasicInformation>>>

5503>>>6:18:49 PM>>>AxINITestApp.ex:2716>>>CLOSE>>>C:\DOCUME~1\AlexM\LOCALS~1\Temp\zwonv8ld.dll>>>SUCCESS>>>>>>


======= END ==========
 
G

Guest

Does anyone have any ideas for me on this? I'm very perplexed. I can't figure out whether there are file-privilage problems or what with respect to the creation of and access to the temporary Assembly DLL which XmlSerializer seems to need.

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top