At a guess, you have visitor groups setup on the database and the code for that does not exist in your local codebase.
If its just locally you want to get this to work and not fussed about the visitor groups, than try the following
If you are inclided to find which Visitor group you might be missing you can look up in the View VW_VisitorGroup and map what you have setup in codebase.
When we did hte upgrade from 11 to 12 at the time we found Episerver.Forms.Samples was not upgraded theirfor missing some visitor groups.
Hope this helps
After upgrade of episerver from 11.17 => 12.15 (and .net to 6) i'm receiving this error:
(error happens on startup)
This is on production image with host and site definition changed to localhost.
If anyone knows what could happen please hint me.
For me this is exception is so vague that it could write "oopsi happened"
Last sucesfull command is:
Initialize Optimizing Block