RE : GLIDE Tutorial

I’ve been using the following tutorial as a starting point for glide. It appears to work on the c# emulator when I am using .NET framework 4.1 ( The text ‘SImple Example’ is dsplayed on the emulator. However, when I try to upload this to the Fez Cobra using .NEt Framework 4.1, I get the errors :

Warning 1 Could not read state file obj\Debug\TinyResGen.cache (Unable to find assembly ‘Microsoft.SPOT.Tasks, Version=4.2.0.0, Culture=neutral, PublicKeyToken=2670f5f21e7f4192’.) FEZ Cobra Console Applicatio[/b][/em][/b]n2

Error 2 Cannot deploy the base assembly ‘mscorlib’, or any of his satellite assemblies, to device - USB:EMX twice. Assembly ‘mscorlib’ on the device has version 4.2.0.0, while the program is trying to deploy version 4.1.2821.0

When I try to upload it the FEz Cobra using .NEt Framework 4.2, I get only the following error message:

Warning 1 Could not read state file obj\Debug\TinyResGen.cache (Unable to cast object of type ‘Microsoft.SPOT.Tasks.ResGenDependencies’ to type ‘Microsoft.SPOT.Tasks.StateFileBase’.) FEZ Cobra Console Application2

I’m not sure of how to solve this issuse. Thanks.

@ blue123 - You need to grab the source to Glide and recompile it to 4.2

I’ve recomplied the source to 4.2, and I have even reinstalled the reference ‘GHIElectronic.NETMF.Glide.dll’. After doing what you suggested the error messages I mentioned do not appear, however when I try to deploy using this reference, the error message ‘An error has occured: please check your hardware’ occurs. When I remove this reference I am able to deploy so I am thinking that its the reference that is the issue?

Can you post a few more details like board, project type etc

Oh sorry, forgot the link

Im using a FEZ cobra

Ok, so:

The Cobra firmware is 4.2?
You have created a 4.2 console app?
You have recompiled the Glide dll to 4.2 and have added a reference to the newly compiled dll?