Hi,
When I was trying using local development configuration to set up a server, I got an error Field not found: 'Orleans.Configuration.Validators.ClientClusteringValidator.ClusterIdNotConfigured'. It is very strange, because I did set ClusterId both in UseLocalhostClustering and Configure<ClusterOptions>.
Here is my server main code
static async Task Main(string[] args)
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
ISiloHostBuilder siloBuilder = new SiloHostBuilder()
.UseLocalhostClustering(clusterId: "tpdt-dev")
.Configure<ClusterOptions>(options =>
{
options.ClusterId = "dev";
options.ServiceId = "HelloWorldApp";
})
.Configure<EndpointOptions>(options => options.AdvertisedIPAddress = IPAddress.Loopback)
.ConfigureLogging(
logging => logging.AddConsole());
ISiloHost silo = siloBuilder.Build();
await silo.StartAsync();
Console.WriteLine("Press Enter to close.");
// wait here
Console.ReadLine();
// shut the silo down after we are done.
await silo.StopAsync();
}
And the sentry exception log is https://sentry.io/share/issue/d4d5026ae2ca44f29528d1b3d784f763/ .
Thank you.
I suppose it's a regression in 2.0.3.
In 2.0.0 it works as expected.
I think this is caused by runtime and generator mismatch - see #4601
@StasPerekrestov @tcz717 This error has been deleted from the source code, at #4450 [ce689d1],I don't know why I'm wrong.
@luohuazhiyu After I manually installed Microsoft.Orleans.OrleansRuntime 2.0.3, the problem fixed. I think the key reason is that our server program uses Microsoft.Orleans.Server latest version 2.0.0 which only contains Microsoft.Orleans.OrleansRuntime 2.0.0. Just like what @sagron said.
@tcz717 I found out that the upgrade is not completely caused, please check the version of your dll file after the release.
This is a version mismatch issue, as mentioned above - please ensure that all packages have a consistent version. Feel free to reopen
Most helpful comment
@luohuazhiyu After I manually installed Microsoft.Orleans.OrleansRuntime 2.0.3, the problem fixed. I think the key reason is that our server program uses Microsoft.Orleans.Server latest version 2.0.0 which only contains Microsoft.Orleans.OrleansRuntime 2.0.0. Just like what @sagron said.