Error 1 CLR_E_ENTRY_NOT_FOUND

Feb 26, 2014 at 3:41 PM
Error 1 CLR_E_ENTRY_NOT_FOUND
description
I created a Visual C# 2010 Project with the code (see below).

If I reference Toolbox.NETMF.Netduino I get the following Error when I try to Build and Deploy to a Netduino 2 Plus with a GPS 3300 shield.

Error 1 CLR_E_ENTRY_NOT_FOUND C:\Users\Milt3\Documents\Visual Studio 2010\Projects\NetduinoGPS\NetduinoGPS\MMP NetduinoGPS

Any Ideas...

Toolbox Version: 4.2.0.0
Runtime Version: v4.0.30319
Microsoft .NET Micro Framework SDK v4.2
Version 4.2.0.0
Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: C# Express

Microsoft .NET Micro Framework v4.2 01014-169-2560017-70002
Microsoft .NET Micro Framework SDK v4.2
Version 4.2.0.0

Microsoft Visual C# 2010 01014-169-2560017-70002
Microsoft Visual C# 2010
Hotfix for Microsoft Visual C# 2010 Express - ENU (KB2635973) KB2635973
This hotfix is for Microsoft Visual C# 2010 Express - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.
Microsoft Visual C# 2010 Express - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual C# 2010 Express - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.


CODE:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using Toolbox.NETMF.Hardware;
using Toolbox.NETMF.NET;
using Toolbox.NETMF;
namespace NetdunoGPS
{

public class Program // netDuino
{

public static NmeaGps Gps = new NmeaGps();
public static OutputPort Led = new OutputPort(Pins.ONBOARD_LED, false);
// ********************************* **************************************
public static void Main()
{
// Binds all events to the GPS device
Gps.GotFix += new NativeEventHandler(Gps_GotFix);
Gps.LostFix += new NativeEventHandler(Gps_LostFix);
Gps.PositionChanged += new NativeEventHandler(Gps_PositionChanged);
// Starts the GPS device
Debug.Print("Trying to get a fix...");
Gps.Start();
// Nice blinking LED effect when we have a fix
while (true)
{
    Led.Write(Gps.Fix);
    Thread.Sleep(450);
    Led.Write(!Gps.Fix);
    Thread.Sleep(50);
}
}
// ***********************************************************************
static void Gps_PositionChanged(uint Unused, uint FixType, DateTime GPSTime)
{
string Outp = "";
Outp += "3D-Fix: " + Gps.Fix3D.ToString();
Outp += ", Sattellites: " + Gps.Satellites.ToString();
Outp += ", Time: " + Gps.GPSTime.ToString();
Outp += ", Latitude: " + Gps.SLatitude;
Outp += ", Longitude: " + Gps.SLongitude;
Outp += ", Altitude: " + Gps.SAltitude;
Outp += ", Knots: " + Gps.Knots.ToString() + " (" + Gps.Kmh.ToString() + " km/h)";
Debug.Print(Outp);
// If you want to translate this to a Bing Maps URL, try this:
Debug.Print("http://www.bing.com/maps/?q=" + Tools.RawUrlEncode(Gps.Latitude.ToString() + " " + Gps.Longitude.ToString()));
}
// ***********************************************************************
static void Gps_GotFix(uint Unused, uint FixType, DateTime GPSTime)
{
Debug.Print("We got a fix, yay!!");
}
// ***********************************************************************
static void Gps_LostFix(uint Unused, uint FixType, DateTime GPSTime)
{
Debug.Print("We lost our GPS fix :(");
}
// ***********************************************************************
Coordinator
Jun 21, 2014 at 3:16 PM
Hi miltonkbenjamin,

This error occures when the used libraries are not compatible with each other. I just compiled the libraries against the latest .NETMF versions. Could you please try again?
If it doesn't help, remove and re-add all your references. Let me know if it worked!