When I open in Deploy_SCCM_Definition_ENU.xml from WizardEditor 2.0 i
When I open Deploy_SCCM_Definition_ENU.xml in WizardEditor, I get an error message: "The type initializer for "WizardEditor.Utility" thew an exceptiom".
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationException: The type initializer for 'WizardEditor.Utility' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WizardEditor.Utility..cctor()
--- End of inner exception stack trace ---
at WizardEditor.Utility.FindFile(String definitionDirectory, String fileName)
at WizardEditor.MainForm.LoadPreview()
at WizardEditor.MainForm.paneTree_AfterSelect(Object sender, TreeViewEventArgs e)
at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)
at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

Assembly Version:
Win32 Version:

CodeBase: file:///I:/Raif/MDT%20SCCM/WizardEditor.exe

Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/

Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/

Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/

Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/

Assembly Version:
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
For example:
<system.windows.forms jitDebugging="true" />
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Closed Oct 13, 2009 at 8:43 PM by mniehaus
Fixed in version 2.0.1, available for download.


mniehaus wrote Oct 13, 2009 at 6:52 PM

Do you have MDT 2008 or MDT 2010 installed on the computer? That exception will occur if they aren't. That's a bug, I'll fix it.

altaranenco wrote Oct 13, 2009 at 7:43 PM

No. Its only Windows 7 client.

wrote Oct 13, 2009 at 8:42 PM

wrote Oct 13, 2009 at 8:43 PM

wrote Feb 14, 2013 at 7:14 PM

wrote May 16, 2013 at 9:13 AM