Hi,
I get exception in .Net 3.5 WinForms application on W7 with Cyrillic user name, like this:
-- Unable to generate a temporary class (result=1).
error CS0016: Could not write to output file 'e:\Users\Вася\AppData\Local\Temp\7i5euue0.dll' -- 'The directory name is invalid. '
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
This code works with English user name and it works on Windows 8 even with Cyrillic user name.
What should I do?
Google suggests to switch to the NetDataContractSerializer or use Sgen.
Is it a known bug or what?
Any other ideas?