Monthly Archives: May 2012

Default XmlSerializer uses %TMP% folder to generate an assembly dynamically.

I got such a stack trace today: System.InvalidOperationException: Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\Windows\TEMP\elfzvfzu.0.cs’ could not be found error CS2008: No inputs specified at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] … Continue reading

Posted in .NET | 1 Comment