Trying to run Umbraco 9 leads to ReflectionTypeLoadException - does anyone know what is going on with this?
I am trying to run Umbraco 9, but I am getting a System.Reflection.ReflectionTypeLoadException in the services.AddUmbraco block.
More error message:
System.Reflection.ReflectionTypeLoadException
HResult=0x80131602
Message=Could not load all types from "Umbraco.Examine.Lucene, Version=9.0.1.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions
I followed the command line way of building the site -
dotnet new -i Umbraco.Templates
dotnet new umbraco --name Umbraco9A1
dotnet run
Opening it up in VS2019 does not get me any further.
If i 'continue' in VS i get a whole load of errors:
First being "TypeLoadException: Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."
then
"TypeLoadException: Method 'GetSearcher' in type 'Examine.Lucene.Providers.LuceneIndex' from assembly 'Examine.Lucene, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."
Trying to run Umbraco 9 leads to ReflectionTypeLoadException - does anyone know what is going on with this?
I am trying to run Umbraco 9, but I am getting a System.Reflection.ReflectionTypeLoadException in the services.AddUmbraco block.
More error message: System.Reflection.ReflectionTypeLoadException HResult=0x80131602 Message=Could not load all types from "Umbraco.Examine.Lucene, Version=9.0.1.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions
I followed the command line way of building the site -
dotnet new -i Umbraco.Templates
dotnet new umbraco --name Umbraco9A1
dotnet run
Opening it up in VS2019 does not get me any further.
If i 'continue' in VS i get a whole load of errors:
First being "TypeLoadException: Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."
then
"TypeLoadException: Method 'GetSearcher' in type 'Examine.Lucene.Providers.LuceneIndex' from assembly 'Examine.Lucene, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."
Does anyone know what the issue is?
Is there a seperate nuget source for Umbraco 9?
The problem is most likely this one: https://github.com/umbraco/Umbraco-CMS/issues/11179
There's a solution in the issue, clear caches and try again. Apologies for the inconvenience! :)
Thanks Sebastiaan
is working on a reply...