Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Dec 19, 2022 @ 10:20
    Huw Reddick
    0

    Suddenly started getting a weird exception - Panic, exception while loading cache data.

    On one of my development test instances I have suddenly started to get an exception when running the site

    It is using v10.3.0

    An unhandled exception occurred while processing the request.
    MissingMethodException: Method not found: 'Void Umbraco.Cms.Core.Services.LocalizedTextServiceSupplementaryFileSource..ctor(Microsoft.Extensions.FileProviders.IFileInfo, Boolean)'.
    Umbraco.Extensions.UmbracoBuilderExtensions.GetSupplementaryFileSources(IWebHostEnvironment webHostEnvironment)
    

    I have not changed anything since it was last fired up, so am a bit clueless as to it's cause

    Has anyone come across this before?

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Dec 20, 2022 @ 09:33
    Huw Reddick
    0

    Does anyone have any idea what might be causing this? I now have a completely non function dev instance which I have spent several months working on :(

    This is the error from the Umbraco logs.

    Exception
    System.MissingMethodException: Method not found: 'Void Umbraco.Cms.Core.Services.LocalizedTextServiceSupplementaryFileSource..ctor(Microsoft.Extensions.FileProviders.IFileInfo, Boolean)'.
       at Umbraco.Extensions.UmbracoBuilderExtensions.GetSupplementaryFileSources(IWebHostEnvironment webHostEnvironment)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetServices[T](IServiceProvider provider)
       at Umbraco.Cms.Infrastructure.DependencyInjection.UmbracoBuilderExtensions.CreateLocalizedTextServiceFileSourcesFactory(IServiceProvider container)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
       at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
       at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
       at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
       at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
       at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
       at System.Lazy`1.CreateValue()
       at Umbraco.Cms.Core.Services.LocalizedTextService.<>c__DisplayClass4_0.<.ctor>b__0()
       at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
       at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
       at System.Lazy`1.CreateValue()
       at Umbraco.Cms.Core.Services.LocalizedTextService.GetFromDictionarySource(CultureInfo culture, String area, String key, IDictionary`2 tokens)
       at Umbraco.Cms.Core.PropertyEditors.ValueListConfigurationEditor..ctor(ILocalizedTextService textService, IIOHelper ioHelper, IEditorConfigurationParser editorConfigurationParser)
       at Umbraco.Cms.Core.PropertyEditors.CheckBoxListPropertyEditor.CreateConfigurationEditor()
       at Umbraco.Cms.Core.Models.DataType..ctor(IDataEditor editor, IConfigurationEditorJsonSerializer serializer, Int32 parentId)
       at Umbraco.Cms.Infrastructure.Persistence.Factories.DataTypeFactory.BuildEntity(DataTypeDto dto, PropertyEditorCollection editors, ILogger`1 logger, IConfigurationEditorJsonSerializer serializer)
       at System.Linq.Enumerable.SelectListIterator`2.ToArray()
       at Umbraco.Cms.Core.Cache.DefaultRepositoryCachePolicy`2.GetAll(TId[] ids, Func`2 performGetAll)
       at Umbraco.Cms.Core.Services.Implement.DataTypeService.GetAll(Int32[] ids)
       at Umbraco.Cms.Core.Models.PublishedContent.PublishedContentTypeFactory.GetDataType(Int32 id)
       at Umbraco.Cms.Core.Models.PublishedContent.PublishedPropertyType..ctor(IPublishedContentType contentType, IPropertyType propertyType, PropertyValueConverterCollection propertyValueConverters, IPublishedModelFactory publishedModelFactory, IPublishedContentTypeFactory factory)
       at Umbraco.Cms.Core.Models.PublishedContent.PublishedContentTypeFactory.CreatePropertyType(IPublishedContentType contentType, IPropertyType propertyType)
       at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
       at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
       at Umbraco.Cms.Core.Models.PublishedContent.PublishedContentType..ctor(IContentTypeComposition contentType, IPublishedContentTypeFactory factory)
       at Umbraco.Cms.Core.Models.PublishedContent.PublishedContentTypeFactory.CreateContentType(IContentTypeComposition contentType)
       at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
       at Umbraco.Cms.Infrastructure.PublishedCache.ContentStore.SetAllContentTypesLocked(IEnumerable`1 types)
       at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.LoadContentFromLocalDbLocked(Boolean onStartup)
       at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.LockAndLoadContent(Func`1 action)
       at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.<EnsureCaches>b__52_0()
       at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
       at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.EnsureCaches()
       at Umbraco.Cms.Infrastructure.PublishedCache.PublishedSnapshotService.CreatePublishedSnapshot(String previewToken)
       at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
    
  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Dec 20, 2022 @ 13:10
    Huw Reddick
    0

    Interestingly this appears to be either Windows/SQL or Visual studio related!!

    I just downloaded a backup of the code and databse from my work desktop (which I tested and it was working) running it locally on my laptop however results in the error above, very strange as other sites are all working fine!

Please Sign in or register to post replies

Write your reply to:

Draft