web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Plugin Error - The Specified domain does not exist or cannot be contacted

(0) ShareShare
ReportReport
Posted on by 5

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

I have the same question (0)
  • Suggested answer
    Gilmeyer Profile Picture
    on at

    Hi ,

    Could you please specify the entity name and let me know if it helps.

    pastedimage1583323648570v1.png

    Refer to https://xrmtoolkit.com/Plugins/PluginWizard#customPlugin

    Thanks

  • altraa Profile Picture
    5 on at

    Thanks for the suggestion, unfortunately there was no change.

    However I was able to get the plugins working by removing the XRMToolKit, i.e inheriting from IPlugIn directly.  So I assume it has something to do with the XRMToolKit or a dependency wasn't published.

  • Joannis Papazissis Profile Picture
    245 on at

    I do have the same problem....do you have a specific suggestion? :(

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 144 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 59

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans