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

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


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!

Advertisements
Categories: CRM Tags: , , ,
  1. February 8, 2011 at 3:36 am

    The Registry can be exported imported or recreated using either the Windows-based version of Registry Editor or the real-mode version on the Windows 95 emergency startup disk. A branch of or the entire Registry can be restored by importing a .REG file that was created by exporting the Registry..

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: