While deploying app for outlook from Dynamics CE you will see an error in red in front of users mailbox "Issue when adding to outlook". If you click more details, you see the message "Invalid data source operation".

If you navigate to Manage addins from a users mailbox, you will see the following error:

"Could not locate Client Access Virtual Directory Object with InternalURl stamped for ECP, service."

Note : For an Office addin to be deployed to a user's mailbox in Exchange, "AppsForOfficeEnabled" should be true. You can the following command to check the configuration settings through Exchange Management Shell (EMS).

Get-OrganizationConfig | Format-List AppsForOfficeEnabled


This is due to the Discovery search from Exchange Admin Center (EAC). Whenever discovery search is performed for the first time using EAC in Exchange 2013, it will check for the following 6 internal URLs in the background and it will cache it locally

Found URL:
Found URL:
Found URL:
Found URL:
Found URL:
Found URL:
[GlobalServiceUrls.DiscoverUrlsIfNeeded] Successfully found all needed VDirs


Make sure all the required virtual directories are present and internal URLs are published on those virtual directories.

For more details on how to configure Exchange virtual directories, see the folllowing URL:

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!