TypeLoadException: Could not load type 'Examine.IndexOptions' from assembly 'Examine.Core, Version=2.0.0.0
was testing the RC4 version. Problem that now has this error.
TypeLoadException: Could not load type 'Examine.IndexOptions' from assembly 'Examine.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
I've already tried to update Examine, but the error still persists.
Has anyone gone through this?
stack trace
ReflectionTypeLoadException: Could not load all types from "Umbraco.Examine.Lucene, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping: . System.TypeLoadException on Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics: Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. . System.TypeLoadException on Examine.Lucene.Providers.LuceneIndex: 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. . System.TypeLoadException on Examine.Lucene.Providers.LuceneIndex: 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. . System.TypeLoadException on Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics: Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. . System.TypeLoadException on Examine.Lucene.Providers.LuceneIndex: 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. . System.TypeLoadException on Examine.IndexOptions: Could not load type 'Examine.IndexOptions' from assembly 'Examine.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. 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. 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. Method 'GetDocumentCountAsync' in type 'Umbraco.Cms.Infrastructure.Examine.LuceneIndexDiagnostics' from assembly 'Umbraco.Examine.Lucene, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. 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. Could not load type 'Examine.IndexOptions' from assembly 'Examine.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
Umbraco.Cms.Core.Composing.TypeFinder.GetTypesWithFormattedException(Assembly a)
Umbraco.Cms.Core.Composing.TypeFinder.GetClassesWithBaseType(Type baseType, IEnumerable<Assembly> assemblies, bool onlyConcreteClasses, Func<Type, bool> additionalFilter)
Umbraco.Cms.Core.Composing.TypeFinder.FindClassesOfType(Type assignTypeFrom, IEnumerable<Assembly> assemblies, bool onlyConcreteClasses)
Umbraco.Extensions.TypeFinderExtensions.FindClassesOfType<T>(ITypeFinder typeFinder, IEnumerable<Assembly> assemblies, bool onlyConcreteClasses)
Umbraco.Cms.Core.Composing.TypeLoader+<>c__DisplayClass56_0<T>.<GetTypes>b__0()
Umbraco.Cms.Core.Composing.TypeLoader.GetTypesInternalLocked(Type baseType, Type attributeType, Func<IEnumerable<Type>> finder, string action, bool cache)
Umbraco.Cms.Core.Composing.TypeLoader.GetTypesInternal(Type baseType, Type attributeType, Func<IEnumerable<Type>> finder, string action, bool cache)
Umbraco.Cms.Core.Composing.TypeLoader.GetTypes<T>(bool cache, IEnumerable<Assembly> specificAssemblies)
Umbraco.Cms.Core.DependencyInjection.UmbracoBuilderExtensions.AddAllCoreCollectionBuilders(IUmbracoBuilder builder)
Umbraco.Cms.Core.DependencyInjection.UmbracoBuilder.AddCoreServices()
Umbraco.Cms.Core.DependencyInjection.UmbracoBuilder..ctor(IServiceCollection services, IConfiguration config, TypeLoader typeLoader, ILoggerFactory loggerFactory, IProfiler profiler, AppCaches appCaches, IHostingEnvironment hostingEnvironment)
Umbraco.Extensions.UmbracoBuilderExtensions.AddUmbraco(IServiceCollection services, IWebHostEnvironment webHostEnvironment, IConfiguration config)
TypeLoadException: Could not load type 'Examine.IndexOptions' from assembly 'Examine.Core, Version=2.0.0.0
was testing the RC4 version. Problem that now has this error.
I've already tried to update Examine, but the error still persists.
Has anyone gone through this?
stack trace
Hi Marcio, you have ran into the following issue: https://github.com/umbraco/Umbraco-CMS/issues/11179
A fix is available in the description there! 👍
tks!
is working on a reply...