A blog offering various X++ code snippets and tips for Microsoft Dynamics AX

Wednesday, November 20, 2013

Problem encountered in "Integration Solution for Microsoft Dynamics AX projects and Microsoft Dynamics CRM"

Hi Folks, Some of you might be trying out the new Integration Solution for "Microsoft Dynamics AX projects and Microsoft Dynamics CRM" which can be downloaded from this Partnersource link When following the step-by-step guide you might encounter the following issue: When you try to run "ConnectorMapInstallerForSI.exe", as instructed my Microsoft documentation, the exe fails to load. When I encountered this problem I chose to debug it in VS I got the following exception: “Unhandled exception: System.IO.FileLoadException: Could not load file or assembly ‘ConnectorMapInstallerForSI, version=, culture=neutral, publickeytoken= 'or one of its dependencies. Strong name validation failed.” Obviously I could not view the source code of the exe. To resolve the above issue I open the VS developer command prompt (luckily I had VS installed :)) and ran the following command: sn -Vr * (Note: the V should be capitalised or else this won't work) After that the .exe loaded correctly. I hope this helps people out there who encounter these problems. References: http://blogs.msdn.com/b/securitytools/archive/2009/12/30/how-to-turn-off-strong-name-validation.aspx If you any questions or comments e-mail me on: mirkobonello@live.com

Dynamics Connector Error when configuring CRM adapter for CRM 2013

Hi Folks, I am testing the Dynamics Connector between Dynamics AX 2012 and Dynamics CRM 2013. I downloaded and installed the last version of the Dynamics Connector for AX. For this you must use the CRM 2011 adapter but if, during the adapter configuration wizard in the step "Setting product decimal decision", you get the following error: "The attribute of type:Image introduced in version is not available for this client version" then you should solve this issue by replacing the Microsoft.Xrm.Sdk.dll file from the CRM SDK 2013 bin folder to the following folder: \Program Files (x86)\Microsoft Dynamics\Microsoft Dynamics Adapter\Adapters\Microsoft.Dynamics.Integration.Adapters.Crm2011 This will get you past this error message. Note: According to MS this should be solved in the latest version of the Dynamics Connector (v3.1) but I still encountered this issue even if I downloaded the Connector just yesterday (19th November 2013). If you any questions or comments e-mail me on: mirkobonello@live.com