In one of our Plug-in, we have logic to upload the note’s attachment to SharePoint server.

Everything was working as expected until we got this unexpected exception ‘Specified domain does not exist or cannot be contacted’.

Domain Does Not Exist
Domain Does Not Exist

Reason & Fix:

  • Reason for this exception while updating Plug-in Assembly, I accidentally set the ‘Isolation mode’ to ‘Sandbox’.
  • Since there was no trust established with SharePoint server, plug-in thrown exception when tried to upload file to SharePoint Document Library.
  • Changing Isolation Mode to ‘None’ solved our issue.
Isolation Mode - Sandbox
Isolation Mode – Sandbox
  • Alternative way for Isolation ‘none’ is to establish trust. Refer this article on how establish trust.

🙂

Advertisements
Advertisements

One response to “Specified domain does not exist or cannot be contacted – Error connecting to SharePoint from CRM on premise Plug-in”

  1. SR Avatar
    SR

    Hi
    I am also attaching an Excel File in Notes and then executes a plugin. Since I am working on D365 online; I cannot set Islation Mode to ‘None’ because ‘Sandbox’ is the only available option for D365 (Online). How can I get rid of this issue

Leave a reply to SR Cancel reply