Skip to content

Sentiment Analysis on Uwp - MissingMethodException #1595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
neven10 opened this issue Nov 10, 2018 · 3 comments
Closed

Sentiment Analysis on Uwp - MissingMethodException #1595

neven10 opened this issue Nov 10, 2018 · 3 comments
Assignees
Labels
UWP Bugs related UWP
Milestone

Comments

@neven10
Copy link

neven10 commented Nov 10, 2018

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 .

@Zruty0
Copy link
Contributor

Zruty0 commented Nov 12, 2018

@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?

@eerhardt
Copy link
Member

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.

@CESARDELATORRE
Copy link
Contributor

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

eerhardt added a commit to eerhardt/machinelearning that referenced this issue Feb 15, 2019
Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix dotnet#1595
Fix dotnet#2422
eerhardt added a commit to eerhardt/machinelearning that referenced this issue Feb 15, 2019
Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix dotnet#1595
Fix dotnet#2422
@shauheen shauheen added the UWP Bugs related UWP label Feb 15, 2019
@shauheen shauheen added this to the 0219 milestone Feb 15, 2019
eerhardt added a commit to eerhardt/machinelearning that referenced this issue Feb 21, 2019
Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix dotnet#1595
Fix dotnet#2422
eerhardt added a commit that referenced this issue Feb 21, 2019
* Stop using System.ComponentModel.Composition

Replace our MEF usage, which is only used by custom mapping transforms, with the ComponentCatalog class.

Fix #1595
Fix #2422

* Rename new class to CustomMappingFactory.
@ghost ghost locked as resolved and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
UWP Bugs related UWP
Projects
None yet
Development

No branches or pull requests

5 participants