When you attempt to import a solution in Dynamics 365, the import fails with the following message:
"The solution is already installed on this system as an unmanaged solution and the package supplied is attempting to install it in managed mode. Import can only update solutions when the modes match. Uninstall the current solution and try again.
Error code 80048040"