The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.


We had our plugins registered in Sandbox mode (for development we were using on premise and were deploying it on online environment) and the Microsoft Dynamics CRM Sandbox Processing Service was not running.

Starting the service resolved the issue.

Hope it helps.

“System.ArgumentException: The specified string is not in the form required for a subject” error while sending mail through plugin in CRM 2011.


We were getting the above error in one of our plugin which was using SendEmailRequest to send mail.

As it turned out it was because of the subject not being in proper format in the template



Hope it helps.

Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException: SOAP security negotiation with ‘http://../XRMServices/2011/Organization.svc’ for target ‘http://.. /XRMServices/2011/Organization.svc’ failed while using Plugin Registration Tool.


Today I was getting the above error while trying to update one of my plugin assemblies. The password of the admin account had recently changed. So I had to Remove the existing connection and create a new one to get things working.


SecurityException: Request for the permission of type “System.Security.Permissions.EnvironmentPermission” failed in CRM 2011 plugin.

We will get this error while using Environment.MachineName
in our plugin code to get the Server Name in case of Sandbox.


Security Exception: That assembly does not allow partially trusted callers in CRM 2011 plugin.


We were getting the below error in one of our plugins. The reason was because we were making use of HttpContext class of System.Web assembly.

For our on-premise deployment it was working fine, we were getting this issue only on registering plugin on Sandbox mode.

We can find the explanation here


Writing a Plugin on “Distribute Campaign Activity” message in CRM.


We recently had a requirement to execute a plugin  when a CampaignActivity is distributed using “Distribute Campaign Activity” button.

As it turned out, this message was not available.

As it was on premise, we enabled it in an unsupported manner i.e. by updating the sdkmessagefilterbase table in orgname_mscrm database.

SQL Query Used :-

update sdkmessagefilterbase

set isCustomProcessingStepAllowed=1


sdkmessageid=(select sdkmessageid from sdkmessagebase where name=‘DistributeCampaignActivity’)



Hope this helps.

%d bloggers like this: