Hello,
we upgraded DNN from 9.13.6 (which was working fine) directly to 10.1.2. After that everything seemed to work ok, but recently I found out I cannot create a new site anymore. During the creation process (showing blue progress bar on the top) DNN returns an error below:
Unable to cast object of type 'DotNetNuke.Security.Permissions.PermisionInfo' to type 'DotNetNuke.Abstractions.Security.Permissions.IPermissionInfo'.
In the log there is this error: 2025-11-26 11:28:12.175+00:00 [ukxxlon99ws0144][D:13][T:51][ERROR] Dnn.PersonaBar.Sites.Components.SitesController - System.InvalidCastException: Unable to cast object of type 'DotNetNuke.Security.Permissions.PermissionInfo' to type 'DotNetNuke.Abstractions.Security.Permissions.IPermissionInfo'. at DotNetNuke.Services.Upgrade.Upgrade.AddPagePermission(TabPermissionCollection permissions, String key, Int32 roleId) at DotNetNuke.Services.Upgrade.Upgrade.AddAdminPage(PortalInfo portal, String tabName, String description, String tabIconFile, String tabIconFileLarge, Boolean isVisible) at DotNetNuke.Entities.Modules.DesktopModuleController.AddDesktopModulePageToPortal(DesktopModuleInfo desktopModule, String pageName, Int32 portalId, Boolean& createdNewPage, Boolean& addedNewModule) at DotNetNuke.Entities.Modules.DesktopModuleController.AddDesktopModulesToPortal(Int32 portalId) at DotNetNuke.Entities.Portals.PortalController.CreatePortalInternal(Int32 portalId, String portalName, UserInfo adminUser, String description, String keyWords, IPortalTemplateInfo template, String homeDirectory, String portalAlias, String serverPath, String childPath, Boolean isChildPortal, String& message) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String portalName, Int32 adminUserId, String description, String keyWords, IPortalTemplateInfo template, String homeDirectory, String portalAlias, String serverPath, String childPath, Boolean isChildPortal) at Dnn.PersonaBar.Sites.Components.SitesController.CreatePortal(List`1 errors, String domainName, String serverPath, String siteTemplate, String siteName, String siteAlias, String siteDescription, String siteKeywords, Boolean isChildSite, String homeDirectory, Int32 siteGroupId, Boolean useCurrent, String firstname, String lastname, String username, String email, String password, String confirm, String question, String answer)
Also in the console, after the unsuccesful attempt, I see a 400 status error on /API/PersonaBar/Sites/CreatePortal:1 that doesn't seem to exist. See below screenshot.
Could it be that we didn't upgrade from 9.13.6 to 9.13.9 first, but directly to 10.1.2?
Regards, Vlastimil Konopisky
Thanks Daniel for your reply. It seems I was wrong with the original version, we actually upgraded from 9.11.2 directly to 10.1.2.
We have the backup (before the upgraded) so we chose the safe way and rolled back to 9.11.2 and then upgraded first to 9.13.9 and after that to 10.1.2 - and the problem disappeared. I will keep in mind for the next upgrade that the recommended upgrade path really matter.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
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.