NotSupportedException loading Glide Window with Hydra

I’m testing the code that I posted here:

[url]http://code.tinyclr.com/project/411/glide-buttons-and-gadgeteer-demo/[/url]

ported to Hydra running the new SDK and firmware.

When I run the project, the Glide “Loading” screen comes up, but when I hit this line:

window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window1));

I get the following Exception:

[quote]
#### Exception System.NotSupportedException - CLR_E_NOT_SUPPORTED (1) ####
#### Message:
#### System.Xml.XmlReader::Create [IP: 00c7] ####
#### GHIElectronics.NETMF.Glide.GlideLoader::LoadWindow [IP: 001e] ####
#### GHIElectronics.NETMF.Glide.GlideLoader::LoadWindow [IP: 000b] ####
#### GlideButtonDemo.Program::ProgramStarted [IP: 0017] ####
#### GlideButtonDemo.Program::Main [IP: 0015] ####
A first chance exception of type ‘System.NotSupportedException’ occurred in System.Xml.dll
An unhandled exception of type ‘System.NotSupportedException’ occurred in System.Xml.dll[/quote]

Any reason that this should not work on Hydra the same as on Spider? The only thing I changed was swapping out the boards in the designer, and reconnecting the sockets.

I also tried removing all GHI, Gadgeteer, and SPOT references and adding them back to make sure I had the latest versions, but no luck.

Any suggestions are welcome.

Aha.! Easy to fix

@ Gus

That answer is a bit…um…cryptic.

Easy for me to fix, or for you?

Any suggested workaround?

Thanks! :wink:

Thanks for the feedback, it is FIXED :slight_smile:

Enjoy! http://www.tinyclr.com/forum/12/5368

Thanks, Gus.

Appreciate the rapid response time. :slight_smile:

Confirming the fix…

Downloaded the new ZIP, installed the updated OSH SDK, and updated my Hydra firmware. I can confirm that the new release solves the issue I was having with Glide throwing an exception when loading the Window XML from a resource file.

Thanks! :smiley: