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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans