FileNotFoundException for mscorlib.XmlSerializers.DLL, which doesn't exist

后端 未结 3 996
难免孤独
难免孤独 2020-12-31 09:00

I\'m using an XmlSerializer to deserialize a particular type in mscorelib.dll

XmlSerializer ser = new XmlSerializer( typeof( [.Net type in System] ) );
retur         


        
3条回答
  •  不思量自难忘°
    2020-12-31 09:45

    The delay is because, having been unable to find the custom serializer dll, the system is building the equivalent code (which is very time-consuming) on the fly.

    The way to avoid the delay is to have the system build the DLL, and make sure it's available to the .EXE - have you tried this?

提交回复
热议问题