Microsoft Dynamics CRM 2011

Microsoft Dynamics CRM 2011

Tuesday, January 5, 2016

How to Fix the Dynamics CRM ERROR Public assembly must have public key token

In this article we see Step by step How to Fix the Dynamics CRM ERROR Public assembly must have public key token , in both CRM 2011 and CRM 2013 and CRM 2015 .
Several errors can be thrown by Microsoft Dynamics CRM while registering a custom plugin at the CRM server.
Usually the error message will express "Public assembly must have public key token".

We'll see here in only 10 minutes how to fix this error , which is shown this way , for example :

Public assembly must have public key token

Public assembly must have public key token


How to Fix the Dynamics CRM ERROR Public assembly must have public key token


Usually, you will get this kind of error while registering a new custom plugin using the Plugin Registration Tool of the Microsoft Dynamics CRM SDK:

Public assembly must have public key token


TO FIX THIS ERROR, reopen your Visual Studio project , and open the Properties window at the "Signing" tab , as follows :

Public assembly must have public key token

There, check the "Sign the assembly" option.
Optionally, you can sign the assembly using a password.

Then, REBUILD your project, and go to the BIN folder to get the assembly.
Open the Plugin Registration Tool, and specify the location of the assembly:

Public assembly must have public key token


Then, set the isolation to "None", sot that there will be no limitations to the plugin functionality.
Also , select the database option as the place to store the assembly:

Public assembly must have public key token


And click on the "Register Selected Plugins" button:

Public assembly must have public key token




This time, because the plugin includes a signature, CRM will accept the registration:


Public assembly must have public key token




The steps are usually as following:
0) reopen your Visual Studio project
1) open the Properties window at the "Signing" tab
2) check the "Sign the assembly" option
3) sign the assembly using a password (optional)
4) REBUILD your project
5) go to the BIN folder to get the assembly
6) Open the Plugin Registration Tool
7) specify the location of the assembly
8) click on the "Register Selected Plugins" button


Happy CRM.....

      by Carmel Schvartzman


כתב: כרמל שוורצמן

8 comments:

  1. I am unable to set isolation mode to "NONE".
    plz.plz.please help me
    akshaypattar23@gmail.com


    ReplyDelete
    Replies
    1. The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download Now

      >>>>> Download Full

      The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download LINK

      >>>>> Download Now

      The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download Full

      >>>>> Download LINK ur

      Delete
  2. Yes, anyhow i Registered Plugin,
    But i am unable to register the STEP,
    i can fill all the fields in Register Step Form,
    "Except Event Handler". Help me please

    ReplyDelete
  3. This didn't help my problem at all. Still the exact same error

    ReplyDelete
  4. Wow, Absolutely brilliant information Regarding Microsoft Dynamics CRM. I'm in love with this blog. You always provide such a great information.

    ReplyDelete
  5. Hiya, I’m really glad I’ve found this info. Today bloggers publish just about gossip and net stuff and this is actually frustrating. A good website with exciting content, this is what I need. Thank you for making this web-site, and I’ll be visiting again. Do you do newsletters by email?
    wireless network services

    ReplyDelete
  6. The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download Now

    >>>>> Download Full

    The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download LINK

    >>>>> Download Now

    The Microsoft Dynamics Crm Club: How To Fix The Dynamics Crm Error Public Assembly Must Have Public Key Token >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete