FEZ Config Issues

We’ve installed the latest releases of .Net Micro on several computers without issues except on one laptop where VS2013 and .Net Micro work fine but FEZ Config throws a Microsoft .NET Framework Unhandled exception immediately after I click on FEZ Config in the Programs menu. Here are the details from the error window (also in the attached image).

I’ve uninstalled and reinstalled several times with the same results. I see others have gotten similar errors but don’t see if anyone has resolved this issue. Any Ideas?

[quote]See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at FEZConfig.TinyConfiguaration.TinyConfiguaration_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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 **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

FEZ Config
Assembly Version: 4.3.7.8
Win32 Version: 4.3.7.8
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/FEZ%20Config.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.SPOT.Debugger
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/Microsoft.SPOT.Debugger.DLL

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

MFDeployEngine
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/MFDeployEngine.DLL

************** 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
enabled.

For example:

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.

[/quote]

Are you saying that FEZConfig is working working on all the computer except the laptop?

What does “everything works” mean?

I edited the post to try and make it clear. However you got it right, everything works (VS2013, .Net Micro and FEZ Config) on 3 computers. On one computer VS2013 and .Net Micro work but FEZ config throws the exception I described.

is the OS on the laptop different from the others? What OSs are being used?

Can you compile and deploy a program on the laptop?

@ Mike - All the OS’s are Windows 7. I can compile, download and debug on the laptop. I just can’t run FEZ Config.

If you look at the callstack, it would seem extremely early in app initialization, with Form.OnCreateControl and OnLoad listed. It is probably some left over remnants of a previous FezConfig issue, but how to troubleshoot it without source code is likely a challenge. You could try running procmon and seeing if you can identify what occurs before this.

[quote]System.NullReferenceException: Object reference not set to an instance of an object.
at FEZConfig.TinyConfiguaration.TinyConfiguaration_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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) [/quote]

@ Brett - I think it looks like there is a missing configuration file for FEZConfig. I might compare the contents of FEZConfig’s directory on a working machine to the laptop, and copy over any missing files.

I am having the same issue. I can deploy, debug, etc to the Fez Spider, but when I run Fez Config, I get the null reference exception. I have compared Fez Config directory and do not see a difference with a working machine. Maybe a dependency to the application is missing.

Did anyone resolve this issue?

I ran dependency walker and API-MS-WIN-CORE-WINRT-L1-1-0.DLL and a few others are missing. I guess I am missing an install. Any idea which install?

After some digging I have found that it is probably a missing or unregistered ocx file that is needed for the main window. Can someone look at the source and verify this for me?

@ elissard - We do not have a dependency on the assembly you mentioned. You can take a look in the Windows event log viewer and see if there is more information about the exception.

I can confirm that FEZ Config runs without installation.
I simply copy the FEZConfig folder on any PC and run it.
This works for Win 7, 8 and 10.

I get the same exact behavior – please help!

FEZ Config 4.3.7.10 throws an exception immediately.

Details -------------------------------------------------

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at FEZConfig.TinyConfiguaration.TinyConfiguaration_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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 **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

FEZ Config
Assembly Version: 4.3.7.10
Win32 Version: 4.3.7.10
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/FEZ%20Config.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.SPOT.Debugger
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/Microsoft.SPOT.Debugger.DLL

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

MFDeployEngine
Assembly Version: 4.3.1.0
Win32 Version: 4.3.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/GHI%20Electronics/FEZ%20Config/MFDeployEngine.DLL

************** 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
enabled.

For example:

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.

thanks, I will try to run a repair

I ran GHI Electronics NETMF SDK 2015 R1 Pre-Release 3.exe and choose repair. This resolved my issue.
Thanks

I also tried a repair using “GHI Electronics NETMF SDK 2015 R1 Pre-Release 4.exe”, but I still get the exception on Fez Config.exe

Is the suggestion that one needs to use “GHI Electronics NETMF SDK 2015 R1 Pre-Release 3.exe” instead?

BTW, nothing shows up in the Windows event log.

Cheers

Louis

@ lsauve - Nothing that would affect this issue changed in FEZ Config between pre-release 3 and 4. Has FEZ Config ever worked for you?

I work for Dell so this is a standard-issue laptop fully managed by the IT department. So it’s healthy, up to date, and protected.

GHI apps have worked for me in the past, although the laptop environment is dynamic (due to patches and updates).

Everything installed / reinstalled without a hitch.

Does the typo in the exception dump mean anything?
TinyConfiguaration.TinyConfiguaration_Load()

Cheers!

Louis

@ lsauve - We will take a look and see what we can find, but so far we unfortunately have no leads. In the mean time, you can try another computer.

Thanks @ John.

I used another computer as a workaround.

Cheers