Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

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

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

  • Joannis Papazissis Profile Picture
    Joannis Papazissis 245 on at
    RE: Plugin Error - The Specified domain does not exist or cannot be contacted

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

  • altraa Profile Picture
    altraa 5 on at
    RE: Plugin Error - The Specified domain does not exist or cannot be contacted

    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.

  • Suggested answer
    Gilmeyer Profile Picture
    Gilmeyer on at
    RE: Plugin Error - The Specified domain does not exist or cannot be contacted

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans