Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Managed code and Unmanaged code

Posted on by Microsoft Employee

Hi all

Wat is the difference between managed code and Unmanaged code.

Best regards,

Praveen Kumar C

*This post is locked for comments

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Managed code and Unmanaged code
    Hi Praveen,

    +1 for all the other answers. Just wanted to add, in general, managed solutions are used by ISVs so that they can manage the components of the solution. That's where the "Managed" term comes from. These solutions restrict modification of components for obvious reasons (such as upgradability).

    If you are not building an ISV product and simply customising the system to suit customer requirements, you would use an "Unmanaged" solution. This provides the system owner the flexibility further customise the solution them selves or get a third party vendor to do it for them.

    Cheers,

    Nadeeja
  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Managed code and Unmanaged code

    Hi Praveen Kumar,

    Microsoft Dynamic CRM has two types of solutions.

    1. Managed solution
    2. Unmanaged solution.

    A managed solution is a completed solution in which the solution is prevented from being modified in the environment to which it is imported. A managed solution is intended to be distributed and installed.

    • Solution cannot be exported.
    • If the solution is removed all the customizations pertaining to that solution will be removed and there will be a Risk of data loss.

    Once the managed solution is imported following steps takes place:

    • User cannot add or remove the components in a managed solution.
    • User cannot Export a managed solution.
    • By deleting the managed solution all the components in the solutions will also be uninstalled.
    • Managed solution can be overridden by another new version of managed solution.

    Unmanaged solution allows the solution to be modified after it is imported. Unmanaged solution is still under development stage and it is not intended to be distributed or installed.

    • All the elements or components in the solution can be customized without any restriction.
    • An unmanaged solution can be exported.
    • When the unmanaged solution is completed and ready to distribute it, export it and package it as a managed solution.
    • Unmanaged solution files can be transported from one environment to the other.
    • Entities, Fields, web resources can be removed manually.
    • The solution acts as a container for the components. If user deletes the solution the components still exist in the default solution.

    When a solution is unmanaged, the following steps can takes places:

    • Components can be added and removed.
    • Components can be deleted that allow for deletion.
    • Can Export and Import the unmanaged solution.
    • Unmanaged Solution can be exported as a managed solution once the changes are done.

    For more details, please refer the links below.

    http://stackoverflow.com/questions/3981096/difference-between-managed-and-unmanaged-solution-in-crm-5-0-2011

    https://dynamicscrmcenter.com/2014/05/02/difference-between-managed-unmanaged-solutions/

  • Suggested answer
    razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: Managed code and Unmanaged code

    Hi Pravee,

    Please see the article I have written addressing this topic in detail ;

    http://www.crmconsultants.co.uk/managed-vs-unmanaged-solutions/

    Hope that helps, let me know if you have any further questions :)

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: Managed code and Unmanaged code

    Hi,

    It's managed solutions and unmanaged solutions I think? Because otherwise, if you are really asking for code, you should look for this on programming related forums and tutorials - this is CRM related.

    If you are asking about solutions then you should start with this:

    https://msdn.microsoft.com/en-us/library/gg334576.aspx

    this is quite a big topic and hard to explain within few sentences on the forum. In general unmanaged solution will be merged with default solution, so after installing unmanaged solution you will not be able to uninstall it. Managed solutions are used to distribute some components that you created in CRM - they are not merged with default solution, so in theory it's easier to uninstall them (and if they are handled properly, it's possible). Usually people do not understand when to use managed solutions and deploy customizations on production server in such solutions which usually lead to unmaintainable CRM in few years. So unless you are working on a component that you want to share with others (like this community for example :)) by selling it or just releasing it as open source, you should not consider managed solutions at all.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans