私はこの時点で何百ものコンピュータではなく、何百ものコンピュータで使用されているWPF .NET 3.5 SP1アプリケーションを使用しています。アプリケーションは起動時に読み込まれるツリー構造をXMLに格納します。私はシリアル化を介してXMLをロードしようとすると、ブーム。 1つのエンドユーザマシンでのみ発生します。彼は管理者権限、ディスク容量、メモリなどを豊富に持っています。CS2000:予期せずコンパイラの初期化に失敗しました
マシンの問題やウイルス対策/スパイウェアとして無視して、IT部門を巻き込む前に(私は苦労しています)、これを追跡し、より多くの情報を得るためのよりよい方法です。 XmlSerializationは黒い菱形なので、私は開発者としてはるかに多くのことがあるとは確信していません。または私はできますか?
以下のすべてのヒントをお待ちしております。
一時クラス (結果= 1)を生成できません。エラーCS2000:コンパイラ 予期しない初期化に失敗しました - ' この操作を完了するのに十分な記憶域が利用できません。彼は、%TEMP%はそのマシン上を指している管理者権限を持っているにもかかわらず「
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)
+1最初の提案では、私は一時的なフォルダのアクセス許可に無数の時間前に問題がありました。 – Blindy
いいえ、投稿前にtempを確認し、彼に完全な管理者権限を明示的に与えました。空きメモリは、両方のマシンで〜1GBです。 – billb