유형을 직렬화하려고 할 때 작업했던 응용 프로그램이 실패합니다.
다음과 같은 진술
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, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
클래스에 대한 특수 직렬 변환기를 정의하지 않습니다.
이 문제를 어떻게 해결할 수 있습니까?
Generate serialization assembly
드롭 다운을 "자동"대신 "켜기"로 변경하십시오 .