We are struggling to get a fully working DNN 9.1.1. Out of the blue, a few days ago, Superusers were met with a 500 error first thing in the morning. Other users are fine. We cannot find any trace of server updates or file updates on the server that may have caused this. The error comes from the PersonaBar and is:
System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Users.UserProfile.GetPropertyValue(String propName) at DotNetNuke.Entities.Users.UserProfile.get_PreferredTimeZone() at Dnn.PersonaBar.Library.Containers.PersonaBarContainer.GetConfigration(PortalSettings portalSettings) at ASP.desktopmodules_admin_dnn_personabar_usercontrols_personabarcontainer_ascx.__RenderPersonaBarPanel(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) etc .....
We have tried (without changing the error): Setting the Default value for PreferredTimeZone in [ProfilePropertyDefinition] to '0' Updating Userprofile for thisPropertyDefinitionD to '0'
We have tried upgrading ourselves out of this (on a test version of the site) first by upgrading to DNN 9.3.2 (All but 3 of the 21 DLLs failed to load) and subsequently by going straight to DNN 9.8.0 (again jus 3 DLLs were left
All of the Upgrade succeeds except for installation of the PersonaBar. The end result remains a 500 error. There are 23 \Providers\DataProviders\SqlDataProvider\ .log.resources files which are all empty The installer log file reports DotNetNuke.Services.Upgrade.Upgrade Start InstallPackage:D:\DotNetNukeUpgrade\Install\Module\Dnn.PersonaBar.Extensions_09.08.01_Install.zip ... and the 22 lines of: [ERROR] DotNetNuke.Services.Upgrade.Upgrade Error creating component installer. The file Dnn.PersonaBar.Extensions_09.08.01_Install.zip remains in the Install\Module folder (unblocked, correct permissions) \DesktopModules\Admin\Dnn.PersonaBar\Resources\LocalResources.en-GB.resources has the right permissions The URL on running the upgraded site (after upgrade straight to 9.8.1) returns an error suggesting use of a deprecated (and now removed) method (GetTabModuleSettings): error=Method+not+found%3a+%27System.Collections.Hashtable+DotNetNuke.Entities.Portals.PortalSettings.GetTabModuleSettings(Int32)%27.&content=0
We run OpenWebstudio, Glanton AD, Porto v4 skin and Azure Authentication (which uses NewtonSoft json 9.0.0 intalled successfully on DNN 9.1.1) but little else
Perhaps the way out is to manually install the PersonaBar package. The trouble is we can't do this via the UI. Can that be done from command line?
Alternatively does anyone have any other suggestions for getting us back up and running?
Thanks for any help you people can offer!
Hi Joe,
Thanks for the reply. Our last effort was to (deliberately!) upgrade straight from 9.1.1 to DNN 9.8.1 to see if we could override the errors. (had upgraded asp.net befrehand). Realised we need to update OWS too and that got rid of the last error for a deprecated (now removed) call. Now when attempting to run DNN 9.8.1 (with everything successfully installed other than the PersonaBar) we are still left with the original error from 9.1.1:
2021-01-11 08:53:13,474 [EHSWEB][Thread:39][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=223&error=terminate System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Users.UserProfile.GetPropertyValue(String propName) at DotNetNuke.Entities.Users.UserProfile.get_PreferredTimeZone() at Dnn.PersonaBar.Library.Containers.PersonaBarContainer.GetConfigration(PortalSettings portalSettings) at ASP.desktopmodules_admin_dnn_personabar_usercontrols_personabarcontainer_ascx.__RenderPersonaBarPanel(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) .... etc
Thanks for any furhter insights...
Mike
Thanks Jo. We have done that. First we tried 9.1.1 to 9.3.2. Only when that didn't work did we try to go straight to 9.8.1
Our problem is that:
I'll repeat 9.1.1 to 9.3.1 and then to 9.8.1 in case I can make that work
No it wasn't. The thing that has prompted this upgrade was that:
Strange issue, you already tried a lot, so I'm not sure my response will help you. I think I would try to create a new user, promote that to Super User and see if that user can login. If it does compare that user with the other users. Or you could try resetting the persona bar (make a backup :-)) by removing the folder
/DesktopModules/Admin/Dnn.PersonaBar/Resources
But I don't expect to fix your issue. And if you find a way out of this, please do the upgrade. 9.1.1 has it's issues TBH (as you now know ;-))
Thanks Timo. Can I just check what you are suggesting? By "Or you could try resetting the persona bar (make a backup :-)) by removing the folder". Are you suggesting I remove the folder then re-run install.aspx with the PersonaBar package that remains in the install folders? Thanks - and don't worry we are dong all such experiments on a copy of the site!
.... and I'm assuming I leave the DLLs in place in the bin folder..
Hi Mike,
AFAIK, DNN re-generates the folder when you re-start it.
Best, Timo
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.