Machinelearning: Sentiment Analysis on Uwp - MissingMethodException

Created on 10 Nov 2018  路  3Comments  路  Source: dotnet/machinelearning

System information

  • OS version/distro: Windows 10 UWP app, ML 0.7.0
  • .NET Version (eg., dotnet --info): Net standard / Targeting min Fall Creator Update

Issue

  • What did you do?
    Was trying to run binary classification example on Uwp.

  • What happened?

System.MissingMethodException: Method not found: 'System.ComponentModel.Composition.Hosting.CompositionContainer Microsoft.ML.Runtime.IHostEnvironment.GetCompositionContainer()'.

It works fine with .Net Core Console .

UWP

Most helpful comment

Adding a related sample app which mentions related issues:
https://xamlbrewer.wordpress.com/2019/01/25/machine-learning-with-ml-net-in-uwp-clustering/

All 3 comments

@eerhardt I assume this has to do with the fact we started using MEF 1.0 in ML.NET? Are these UWP apps not compatible with MEF?

I've opened https://github.com/dotnet/corefx/issues/33434 for this issue. It appears to either be an issue with the NuGet package, or UWP itself.

Adding a related sample app which mentions related issues:
https://xamlbrewer.wordpress.com/2019/01/25/machine-learning-with-ml-net-in-uwp-clustering/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rogancarr picture rogancarr  路  3Comments

aslotte picture aslotte  路  3Comments

rogancarr picture rogancarr  路  4Comments

rebecca-burwei picture rebecca-burwei  路  3Comments

JakeRadMSFT picture JakeRadMSFT  路  3Comments