Copied to clipboard

Flag this post as spam?

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


  • Sai Tej 4 posts 71 karma points
    Oct 03, 2023 @ 02:00
    Sai Tej
    0

    Umbraco 10 Upgrade The indexer with name InternalIndex already exists

    Hello,

    I am trying to upgrade Umbraco 9 to 10 and I followed all the steps in the upgrade process from the documentation. When I run the project, I get the following error in Program.cs

    The indexer with name InternalIndex already exists
    
    Source: Examine.Core
    
    
    StackTrace:"at Examine.ExamineManager.AddIndex(IIndex index)
       at Examine.ExamineManager..ctor(IEnumerable`1 indexes, IEnumerable`1 searchers)"
    
  • Nick 9 posts 99 karma points
    Oct 21, 2024 @ 23:38
    Nick
    0

    We had this issue and for any future references. I found that our code was trying to load the Umbraco backoffice twice in the program.cs

    services.AddUmbraco(_env, _config)
    .AddBackOffice()
    .AddWebsite()
    .AddComposers()
    .Build();
    
    
    if (!_env.IsDevelopment())
        services.AddUmbraco(_env, _config)
        .AddBackOffice()
        .AddWebsite()
        .AddComposers()
        .AddAzureBlobMediaFileSystem()
        .Build();
    
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies