Hi!

Today I’m going to leave this POST as a memory backup for me because I always forget to make this configuration in ML.Net projects and I always find the following error:

System.InvalidOperationException

  HResult=0x80131509

  Message=Entry point ‘<some external assembly> not found

  Source=Microsoft.ML.Data

Where [External Assembly] can be For example LightGBM

  Message=Entry point ‘Trainers.LightGbmClassifier’ not found

01 mlnet entry point not found

This error triggered when the app is running, at the beginning of a pipeline training. It is usually associated with scenarios where we add and use external references in addition to Microsoft.ML.

The solution is quite simple, we just have to make sure that the Project Property <CopyLocalLockFileAssemblies> this enabled

02 mlnet project config CopyLocalLockFileAssemblies

Editing the csproj file like this

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup Label="Globals">
    <SccProjectName>SAK</SccProjectName>
    <SccProvider>SAK</SccProvider>
    <SccAuxPath>SAK</SccAuxPath>
    <SccLocalPath>SAK</SccLocalPath>
  </PropertyGroup>
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

And ready, now our pipelines can train properly!

Happy Coding!

Greetings @ Burlington

El Bruno

References

My Posts

8 responses to “#MLNET – Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeline”

  1. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  2. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  3. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  4. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  5. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  6. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  7. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

  8. […] Fix the error [System. InvalidOperationException, Entry Point ‘ Not found] when you train a pipeli… […]

    Like

Leave a reply to #MLNET – Analyzing pipeline data in Machine Learning.Net using the new API 0.6.0 (thanks LINQ!) – El Bruno Cancel reply

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading