web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Managed code and Unmanaged code

(0) ShareShare
ReportReport
Posted on by

Hi all

Wat is the difference between managed code and Unmanaged code.

Best regards,

Praveen Kumar C

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    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.

  • Suggested answer
    razdynamics Profile Picture
    17,308 User Group Leader on at

    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
    Nithya Gopinath Profile Picture
    17,078 on at

    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
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans