dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
263 stars 56 forks source link

Prompt error dialog "Error loading mbconfig file: object reference not set to an instance of an object." when adding model builder. #1422

Closed vzhuqin closed 3 years ago

vzhuqin commented 3 years ago

System Information (please complete the following information):

Branch: https://privategallery.blob.core.windows.net/gallery/refs/heads/u/jakerad/init-and-spinners/atom.xml

Describe the bug Prompt error dialog with message: Error loading mbconfig file: object reference not set to an instance of an object. when adding model builder.

To Reproduce Steps to reproduce the behavior:

  1. Create new C# console app with .Net 5.0;
  2. Right click the created project and select Add>Machine Learning;
  3. Click "Add" button on the Add New Item dialog;
  4. See error: Prompt error dialog with message: Error loading mbconfig file: object reference not set to an instance of an object. image

Note: But close the error dialog, can continue to the next steps without affecting the training of the model.

Expected behavior No error when adding machine learning.

Additional context Before training, re-entrance the model builder will also occur this error dialog; image Close the error, find the states lost of Scenario and Environment and Data page. image

vzhuqin commented 3 years ago

This issue not repro on Main branch: https://privategallery.blob.core.windows.net/gallery/refs/heads/main/atom.xml