Skip to content

[Bug]: dnn 10.2.2.337 personabar not showing after clean build of DNN #6949

@schotman

Description

@schotman

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

This error in de th log files:

2026-01-29 17:36:03.232+01:00 [xps2022][D:8][T:73][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ThrowHelper.ThrowObjectDisposedException()
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
at DotNetNuke.DependencyInjection.LazyWrapper1.GetValue(IServiceProvider serviceProvider) in C:\Development\Repos\Dnn.Platform\DNN Platform\DotNetNuke.DependencyInjection\LazyWrapper.cs:line 23 at DotNetNuke.DependencyInjection.LazyWrapper1.<>c__DisplayClass0_0.<.ctor>b__0() in C:\Development\Repos\Dnn.Platform\DNN Platform\DotNetNuke.DependencyInjection\LazyWrapper.cs:line 17
at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value()
at Dnn.PersonaBar.Library.Controllers.PersonaBarController.b__8_0(MenuItem m) in C:\Development\Repos\Dnn.Platform\Dnn.AdminExperience\Library\Dnn.PersonaBar.Library\Controllers\PersonaBarController.cs:line 74
at System.Linq.Enumerable.WhereListIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Dnn.PersonaBar.Library.Controllers.PersonaBarController.GetMenu(PortalSettings portalSettings, UserInfo user) in C:\Development\Repos\Dnn.Platform\Dnn.AdminExperience\Library\Dnn.PersonaBar.Library\Controllers\PersonaBarController.cs:line 74

Steps to reproduce?

Fresh build DNN for 10.02.02 rc1 from scratch (new fork, new dnnsolutions folder):

  1. .\Build.ps1 --target=ResetDevSite did not show errors, however personabar did not show up after starting the site (after installer),
    2 . after a rebuild the personabar magically appeared 1 time, after accessing another page, it was permanently gone again,

Current Behavior

No response

Expected Behavior

No response

Relevant log output

Anything else?

No response

Affected Versions

Current development branch (unreleased)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions