[Mono-list] Serialization exception: Compiler failed to produce the assembly

Dave Curylo curylod at asme.org
Sat Jul 28 02:47:19 UTC 2012

I'm getting an odd error, running on Ubuntu 12.04, running under Mono JIT
compiler version (Debian

This occurs when a particular entity is returned from a web service call,
although I have no idea what would cause this, as I'm able to serialize and
deserialize to and from an XML file and it's only when I get the data back
from the SOAP web service that this occurs. In fact, it doesn't always
occur even when calling the SOAP service, but that seems to be when it's
most likely to happen. Any ideas?

System.Exception: Compiler failed to produce the assembly. Output: 'dmcs
/target:library /debug- /optimize+ /out:"/tmp/57f941b4/2f96abfc.dll"
/r:"/path/to/MyAssembly.dll" /r:"/usr/lib/mono/4.0/mscorlib.dll"
/r:"System.dll" /r:"System.Xml" /r:"System.Data"  --

/tmp/57f941b4/2f96abfc.cs(521435,48): warning CS1522: Empty switch block
  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] in <filename unknown>:0
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] in <filename unknown>:0
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFile
(System.CodeDom.Compiler.CompilerParameters options, System.String
fileName) [0x00000] in <filename unknown>:0
  at System.Xml.Serialization.XmlSerializer.GenerateSerializers
(System.Xml.Serialization.GenerationBatch batch,
System.CodeDom.Compiler.CompilerParameters cp) [0x00000] in <filename
  at System.Xml.Serialization.XmlSerializer.RunSerializerGeneration
(System.Object obj) [0x00000] in <filename unknown>:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120727/c1fd4a0c/attachment.html>

More information about the Mono-list mailing list