jopa
jopa

Reputation: 165

Getting exceptions when running basic orleans application

I'm involved in a IoT project and considering orleans as a platform. I tried to do the basic tutorial here: http://dotnet.github.io/orleans/Step-by-step-Tutorials/Minimal-Orleans-Application

It seems to be working but I'm getting the following exceptions in the console which would be nice to get rid of:

Could not load file or assembly 'OrleansCodeGenerator' or one of its dependencies. The system cannot find the file specified. Exception = System.IO.FileNotFoundException: Could not load file or assembly 'OrleansCodeGenerator' or one of its dependencies. The system cannot find the file specified.

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified.

I'm using orleans version 1.1.0

Upvotes: 2

Views: 1157

Answers (1)

Gutemberg Ribeiro
Gutemberg Ribeiro

Reputation: 1533

This is a know issue on the template packages. Could you please add the Nuget Microsoft.Extensions.DependencyInjection.Abstractions version 1.0.0-rc1-final on the Silo host Project? For the other exception, looks like are missing the OrleansCodegenerator package. Could you please ensure that .Server nuget is on Silo Host, .Client on Client/FrontEnd and .Core in Interfaces/Grain project? I think it will work otherwise, feel free to open an issue on https://github.com/dotnet/orleans and we will have a look.

More info

The reason this dependency is not added by default as a OrleansCodegenerator dependency, is that this package is not published as a stable package (it is marked as pre-release) and we can't have pre-release packages on Orleans packages otherwise, we would must release Orleans packages as -pre packages. As soon as this package is published as release we are going to update Orleans packages to contain it.

Upvotes: 3

Related Questions