Hi All
I have created two new plugins one Post Create and the other Post Update. They are simple plugins for demonstration purposes and all they do is update a field on the lead.
However both of them raise an error The Specified domain does not exist or cannot be contacted.
These plugins were built using latest version of the XRMToolKit and deployed as a Sandboxed plugin in the Database for Dynamics 365 Online Trail.
Because of these errors I removed all the code from the plugin to eliminate any coding issues and still had the same error.
The code that is left is:
public partial class LeadUpdateFollowupDate : BasePlugin
{
public LeadUpdateFollowupDate(string unsecureConfig, string secureConfig) : base(unsecureConfig, secureConfig)
{
// Register for any specific events by instantiating a new instance of the 'PluginEvent' class and registering it
base.RegisteredEvents.Add(new PluginEvent()
{
Stage = eStage.PostOperation,
MessageName = MessageNames.Update,
EntityName = EntityNames.lead,
PluginAction = ExecutePluginLogic
});
}
public void ExecutePluginLogic(IServiceProvider serviceProvider)
{
// Use a 'using' statement to dispose of the service context properly
// To use a specific early bound entity replace the 'Entity' below with the appropriate class type
using (var localContext = new LocalPluginContext<Entity>(serviceProvider))
{
}
}
}
So essentially they do nothing.
I have been able to Debug the plugins ok using the Plugin Registration tool with no errors, but outside the debugger they error.
Does anyone have any ideas on how to troubleshoot the issue?
Cheers
Alan