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


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

Thursday, September 10, 2015

Install CRM 2013 Developer Tools in your Visual Studio 2012

In this article we describe Step by step How to Install CRM 2013 Developer Tools in your Visual Studio 2012 in 5 minutes.
The CRM 2013 Developer Toolkit , once installed inside the Visual Studio 2012, will allow you to easily create CRM Plugins , Dialogs and Workflows , accessing to CRM Entities and strongly typed proxy classes, and even create, edit and deploy CRM Web Resources, everything from your code!!! The CRM 2013 Developer Toolkit will allow you to easily deploy your code on CRM web servers  :

Install CRM 2013 Developer Tools in your Visual Studio 2012



How to Install CRM 2013 Developer Tools in your Visual Studio 2012



Phase 1: Check for required prerequisites before installing the Developers Toolkit:

Go to the Install or uninstall the Developer Toolkit to check for prerequisites, and to the Developer Toolkit for Microsoft Dynamics CRM web page to see the details of the Developers Tools:

Install CRM 2013 Developer Tools in your Visual Studio 2012 1


Install CRM 2013 Developer Tools in your Visual Studio 2012 2



Phase 2: Download the Toolkit and open the ZIP file:

Click on the installer and follow the CRM 2013 Developer Tools for Visual Studio 2012 setup instructions:
Install CRM 2013 Developer Tools in your Visual Studio 2012 3





Phase 3: Finish the CRM 2013 Developer Tools in your Visual Studio 2012  Setup :


After you finish the CRM 2013 Developer Toolkit for Visual Studio 2012 installation , save your projects, close Visual Studio 2012, and reopen it, to see the changes:

Install CRM 2013 Developer Tools in your Visual Studio 2012 4



As you can see, now there are Templates for you to use when creating a new CRM 2013 Plugin or Workflow.




That's all...Enjoy Dynamics CRM

by Carmel Schvartzman

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