AI OnAI Off
I will look into this and log a bug to Find team if needed. Thanks for bringing it to our attention
It seems our colleagues were already aware of this issue. The cause was AddContentSearchApi() already called AddFind(), so you can remove AddFind() and it should be fine for the time being
Hi, I upgraded my Foundation project to the latest stable NuGet packages, and now when I run the program is crashes on
CreateHostBuilder(args, isDevelopment).Build().Run();
with the error "ArgumentException: An item with the same key has already been added. Key: SearchAdmins".
I cannot find a reason for this - does anyone know how to resolve this?
Thanks
Chris
Update 1: I found that if I commented out this: //services.AddFind(); in Startup.cs I do not get the error.
This is a multi-site setup so maybe that has something to do with the code trying to add "SearchAdmins" twice.
Yet you would think the underlying code would be handling duplicates.
I See the last line is at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
which by the name "TryInsert" I would think it would be graceful enough to not crash on this.
Since I got the site(s) running, I was looking around for a user or group named "SearchAdmins" but cannot find one.