orleans: F# host: Could not find an implementation for interface OrleansDashboard.IDashboardGrain - C# host ok
Unable to host silo in F# console project. C# console project works fine. Please see attached minimal repo.
Need to host in F# due to other F# frameworks (e.g. for web dev) required for the application.
Issue is with the 7.x version. This was not an issue with the 3.x.x version of Orleans.
F# hosting works if ‘UseDashboard’ is commented out.
Error seen:
fail: Orleans.Runtime.SiloLifecycleSubject[100450]
Orleans.Hosting.SiloBuilderStartupExtensions+StartupTask failed to start due to errors at stage Active (20000)
System.ArgumentException: Could not find an implementation for interface OrleansDashboard.IDashboardGrain
at Orleans.GrainInterfaceTypeToGrainTypeResolver.GetGrainType(GrainInterfaceType interfaceType) in /_/src/Orleans.Core/Core/GrainInterfaceTypeToGrainTypeResolver.cs:line 149
at Orleans.GrainFactory.GetGrain(Type interfaceType, IdSpan grainKey, String grainClassNamePrefix) in /_/src/Orleans.Core/Core/GrainFactory.cs:line 214
at Orleans.GrainFactory.GetGrain[TGrainInterface](Int64 primaryKey, String grainClassNamePrefix) in /_/src/Orleans.Core/Core/GrainFactory.cs:line 52
at OrleansDashboard.Dashboard.ActivateDashboardGrainAsync()
at OrleansDashboard.Dashboard.Execute(CancellationToken cancellationToken)
at Orleans.Runtime.SiloLifecycleSubject.MonitoredObserver.OnStart(CancellationToken ct) in /_/src/Orleans.Runtime/Lifecycle/SiloLifecycleSubject.cs:line 134
f
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17 (5 by maintainers)
@DejanMilicic
That would be fantastic. If you open a PR against the dotnet/samples repo, we’ll merge it. A docs page would also be very useful for F# developers, if you’re up for it, maybe under the ‘quickstarts’ section: https://github.com/dotnet/docs/tree/main/docs/orleans/quickstarts
I managed to get everything working with latest version of .NET and latest version of Orleans. Project is updated with detailed instructions in README https://github.com/DejanMilicic/OrleansFsharp
@fwaris I will be grateful for any suggestions you might have @ReubenBond what would be the best way to help fellow F# developers? Would you be okay with expansion of Samples with this project and also with polished up version of https://github.com/DejanMilicic/orleans-fsharp-dotnet9 that showcases similar scenario, but with whole Host project in C# (essentially, interoperability of C# and F# on Orleans project where some or all of the grains can be in F#)?
I had to put a minimal C# library in the solution for the code gen to work.
Below is a sample (prob. now out-of-date) that might help.
https://github.com/[fwaris/OrleansKafkaSample](https://github.com/fwaris/OrleansKafkaSample)