Posts Tagged ‘Hostname’

CRM Plugins were not able to call the CRM Services when localhost

January 23, 2011 1 comment

I am getting ready to create quite a few plugins (synchronous .Net code execution) for CRM 4.0. While testing an account creation plugin, I noticed that the line were I create an instance of ICrmService from the plugin context would fail and therefore was unable to execute correctly.

I was getting strange message “Unable to call remote server”.

I found out that since we’re using a hostname, we need to modify the registry settings for LocalSdkHost and LocalSdkPort values in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM:

The following knowledge base article gave me the clue:  Synchronous plug-ins do not respond to the events that are triggered in Microsoft Dynamics CRM 4.0

Hope this helps! Because plugins are so much more powerfull than workflows!

Categories: CRM Tags: , , ,