Skip to content

[Bug]: Type conversion exception installing module that adds itself automatically to the Admin menu --v10.2.0 #6872

@lanthonyneville

Description

@lanthonyneville

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

A module that installs successfully to DNN 9.x sites fails to install on a DNN 10.2.0 site. The module project was rebuilt for .NET 4.8 and Nuget references were updated to DNN 10.2.0, but no code or manifest file changes were made.

The module contains a <page type="Admin" common="true"> element within the <desktopModule> element in the manifest.

The installation fails with with an error that appears to come from the attempt to add the module to a page under the Admin menu.

Steps to reproduce?

  1. Install any module that contains a <page type="Admin" common="true"> element within the <desktopModule> element in the manifest. For example:
            <page type="Admin" common="true">
              <name>Visitors Online</name>
              <icon>~/Icons/Sigma/Sitemap_16X16_Standard.png</icon>
              <largeIcon>~/Icons/Sigma/Sitemap_32X32_Standard.png</largeIcon>
              <description>Website visitors currently online</description>
            </page>

Current Behavior

No response

Expected Behavior

No response

Relevant log output

From the installation log (only end of the log shown ... all previous steps completed OK):

> Info Component installed successfully - Module
> 
> Failure ExceptionSystem.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.Services.Installer.Installers.ModuleInstaller.Commit() at DotNetNuke.Services.Installer.Installers.PackageInstaller.Commit() at DotNetNuke.Services.Installer.Installer.InstallPackages(Boolean& clearClientCache) at DotNetNuke.Services.Installer.Installer.Install()
> 
> Info Deleted temporary install folder
> 
> EndJob Installation Failed

Anything else?

No response

Affected Versions

10.2.0 (latest v10 release)

What browsers are you seeing the problem on?

No response

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