Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

error: MMP0000: CLR_E_ENTRY_NOT_FOUND

CLR_E_ENTRY_NOT_FOUND

  • Please log in to reply
5 replies to this topic

#1 miltonkbenjamin

miltonkbenjamin

    Member

  • Members
  • PipPip
  • 22 posts

Posted 18 February 2014 - 03:14 PM

MMP : error MMP0000: CLR_E_ENTRY_NOT_FOUND

Occurs during build.

 

Member of .NET Framework 4
  C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.0System.Workflow.Runtime.dll
 

Source:

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
  {
  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 :(");
  }
  // ***********************************************************************
  }
}
 

Any Ideas?

 

Thanks,

 

Milt



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 February 2014 - 09:08 PM

Hi Milt, Is the NETMF library you're using built for the same version of .NET Micro Framework as your application? Chris

#3 miltonkbenjamin

miltonkbenjamin

    Member

  • Members
  • PipPip
  • 22 posts

Posted 21 February 2014 - 08:28 PM

Hi Chris

 

How can I tell what version of .NET Micro Framework  the .NETMF library was built for?

 

This is the toolbox I downloaded. from

https://netmftoolbox...ases/view/99595

.NET Micro Framework Toolbox v0.1

Looks like these libraries consists of a number of interdependent projects.  My problem is I dont yet

see the structure of the process and reverse engineering is not a very efficient way of going at it.

I can input the Toolkit.NETMF.Hardware.Tools project into VisualC# and build it there using 4.2.  However

other libraries are prerequisites.  Is there a systematic way to do this?

Thanks,

Milt



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 21 February 2014 - 11:06 PM

Hi Milt, You may be able to use reflector tools to see what version the DLLs are compiled against. Or ask the author, see if it's in the library docs, etc. But before you do that though...the "missing System.Workflow.Runtime" error has me thinking that your master project may not be a NETMF project--or that it may be trying to pull in a .NET Feature outside the scope of NETMF. Chris

#5 miltonkbenjamin

miltonkbenjamin

    Member

  • Members
  • PipPip
  • 22 posts

Posted 11 March 2014 - 11:35 PM

****** Error: CLR_E_ENTRY_NOT_FOUND

 

To fix the problem, start with a new clean project, add the code and references to the project.

 

Once all the needed references are added, this link error goes away and everything then works.

 

Thanks,

 

Milt



#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 12 March 2014 - 11:31 AM

Hi Milt,

If you do a file comparison on the project files in your "non-working" and "working" project (with the same source code files), how do the contents of those files differ?

If you've already deleted the old project files, no worries. But it would be good to know what setting was causing the issue, to help out anyone else that might happen to find themselves with the same issue in the future.

Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.