DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Cannot create a new site after upgrade to 10.1.2

 2 Replies
 1 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here

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

Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Maybe...

We have an suggested upgrade path, version bumps that have known requirements or have received more testing https://docs.dnncommunity...rade-path/index.html

Now I double this would be data related so potentially some dlls might not have been properly replaced. If you go to Extensions > Installed Extensions and then you pick "Perona Bar" in the filter dropdown, do you see the correct version for "Dnn.PersonaBar.Extensions" ?
New Around Here
Posts: 1
New Around Here

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:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved