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.

Hi,

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.

Hi,

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.

Hi,

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.

Bye.

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.

Bye.

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

Hi,

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

http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/302377cf-97bd-4fe9-b7d0-fa7f08152927/

Bye.

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

Hi,

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

where

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

and

primaryObjectTypecode=‘4402’


Hope this helps.