【发布时间】:2010-10-29 14:35:15
【问题描述】:
我有一个 WPF .NET 3.5 SP1 应用程序,目前至少有数百台(如果不是数千台)机器正在使用它。应用程序在启动时加载的 XML 中存储一个树结构。当我尝试通过序列化加载 xml 时,轰隆隆。它只发生在一台最终用户机器上。他拥有管理员权限、充足的磁盘空间、内存等。
在我将其视为机器问题或防病毒/间谍软件并让他的 IT 部门参与(一个艰苦的过程)之前,我想看看是否有更好的方法来追踪它并获取更多信息。由于 XmlSerialization 是黑盒式的,我不确定作为开发人员我还能做更多的事情。或者我可以吗?
感谢任何提示,以下是完整的错误。
无法生成临时类 (结果=1)。错误 CS2000:编译器 初始化意外失败—— '没有足够的存储空间可用于 完成此操作。 '
Stack Trace:
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)
at Internal.Objects.TreeSetItemManager.LoadTreeItems(String fileName) in TreeSetItemManager.cs:line 41
at SPA.Windows.MasterWindow.OnInitialized(EventArgs e)
5/28/2009 10:16:20 Message:
External component has thrown an exception.Details:
at MS.Win32.UnsafeNativeMethods.ITfThreadMgr.Activate(Int32& clientId)
at System.Windows.Input.TextServicesContext.RegisterTextStore(DefaultTextStore defaultTextStore)
at System.Windows.Input.DefaultTextStore.get_Current()
at System.Windows.Input.TextServicesContext.SetFocusOnDefaultTextStore()
at System.Windows.Input.InputMethod.EnableOrDisableInputMethod(Boolean bEnabled)
at System.Windows.Input.TextServicesManager.Focus(DependencyObject focus)
at System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
at System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
at System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew)
at System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, Int32 message, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
【问题讨论】:
标签: wpf .net-3.5 xml-serialization