profile
viewpoint

Ask questions Cannot find generated GrainReference class for interface issue with 1.2.2 version

Hi,

We upgraded from 1.0.9 to 1.2.2 and after the upgrade we are getting exception where it's unable to load a grainwithguidkey with below error:- Error Details System.InvalidOperationException: Cannot find generated GrainReference class for interface 'Grains.Interfaces.User.IUserGrain' at Orleans.GrainFactory.MakeCaster(Type interfaceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Orleans.GrainFactory.Cast(IAddressable grain, Type interfaceType) at Orleans.GrainFactory.Cast[TGrainInterface](IAddressable grain)

Would really appreciate any quick help on this.

Thanks, Somnath

dotnet/orleans

Answer questions rpanday

Thanks @ReubenBond, adding reference to Microsoft.Orleans.CodeGenerator.MSBuild package worked for me.

useful!
source:https://uonfu.com/
Github User Rank List