Gadgeteer - Glide Compile Error

On my first Glide project I receive this error during compile in debug mode.
An unhandled exception of type ‘System.Xml.XmlException’ occurred in System.Xml.dll.
This seems to be the line of code in question:

static Window[] windows = new Window[3];
windows[0] = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window2 ));

Any suggestions

Welcome to the forum!

Did you design the window using Glide designer?

Yes.

Tell more about what hardware/firmware you are using.

Cool avatar!

This happens in a new project using NETMF 4.2 - Gadeteer board and a TE35 display.

In the file – Resources.Designer.cs the following code is not being auto generated.

internal static string GetString(Resources.StringResources id)
{
return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id)));
}

I have the following libraries added in my Program.cs file
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;

using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;

using GHIElectronics.NETMF.Glide;
using GHIElectronics.NETMF.Glide.Display ;
using GHIElectronics.NETMF .Glide.UI ;

Any suggestions?

@ RobotMan - have you compiled glide to 4.2?

After downloading the Glide files I started a Glide directory under Program Files and recompiked to NETMF 4.2.
In my Gadgeteer project I have added a link in the resources to the Glide.dll file in bin\release directory.

How did you add the xml

It was created by the GHIElectronics Glide designer. Ther version was 1.0.6 whend it was copied off the web site. Note below it was changed to 1.0.5

I mean how did you add it to your resources - as a string ?

Yes.