的这是它产生的问题(同时与选项调试停止对CLR例外)代码:是否有可能阻止这种第一次机会异常
private static XmlSerializer _serializer = new XmlSerializer(typeof(Model.Print.PrinterInfo));
这是个例外
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
Additional information: Could not load file or assembly 'Model.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
这很烦人,因为调试目的,我经常需要启用CLR异常停止,但我不喜欢被人停在这个特定的一个...
是它试图告诉你,你实际上没有安装打印机? – BugFinder
不,我有很多。我认为类XmlSerializer寻找一个DLL来反序列化对象Model.Print.PrinterInfo。所以它寻找一个Model.XmlSerializers,但它没有找到并抛出异常(这是处理的,但这种行为有点奇怪)。 – Revious