all groups > dotnet xml > january 2006 >
You're in the

dotnet xml

group:

Unknown error in XmlSerializer


Unknown error in XmlSerializer Brecht Yperman
1/30/2006 12:00:00 AM
dotnet xml:
Hi,

when calling the XmlSerializer constructor, I get the following error:

Top Level Exception
Type: System.IO.IOException
Message: Unknown Error (-1).
Source: mscorlib
Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String
str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share)
at
System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters
options, String[] sources)
at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters
options, String source)
at
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompil
er.CompileAssemblyFromSource(CompilerParameters options, String source)
at System.Xml.Serialization.Compiler.Compile()
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[]
xmlMappings)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at ...

Any ideas?

Thanks,
Re: Unknown error in XmlSerializer Brecht Yperman
1/31/2006 5:01:25 PM
[quoted text, click to view]

Apparently it's got nothing to do with the XmlSerializer. Every IO call
seems to throw this exception.

AddThis Social Bookmark Button