title: ML.Net - Cannot load a saved Model
body: <p>I want to reload a trained model with ML.Net in my app to don't have to re-train it.</p>
  
  <p>Training and save it look ok. Create the zip file and fill it.</p>
  
  <p>But when i'm trying to reload it from FileStream I get an <code>System.InvalidOperationException</code> with the message <code>Repository doesn't contain entry DataLoaderModel\Model.key</code></p>
  
  <p>My code is pretty similar to what I found on the <a href="https://github.com/dotnet/machinelearning-samples/blob/master/samples/csharp/getting-started/MulticlassClassification_HeartDisease/HeartDiseaseConsoleApp/Program.cs" rel="nofollow noreferrer">Machine Learning Examples</a></p>
  
  <pre><code>var p = @"C:\Users\{UserName}\Desktop\model.zip";
  if (this._mlContext == null)
  this._mlContext = new MLContext();
  
  ITransformer model;
  try
  {
      using (var stream = File.OpenRead(p))
      model = this._mlContext.Model.Load(stream);
  }
  catch (Exception)
  {
      throw; // Invalid Operation Exception
  }
  </code></pre>