18
XmlSerializer在构造函数中提供FileNotFoundException
我尝试使用的应用程序在尝试序列化类型时失败。 像这样的声明 XmlSerializer lizer = new XmlSerializer(typeof(MyType)); 产生: System.IO.FileNotFoundException occurred Message="Could not load file or assembly '[Containing Assembly of MyType].XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified." Source="mscorlib" FileName="[Containing Assembly of MyType].XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" FusionLog="" StackTrace: at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, …
347
c#
xml-serialization