Visual Studio error when trying to create Outlook add-in "Autodiscover service couldn't be located"

BrunoT 0 Reputation points
2023-12-12T18:14:22.12+00:00

I was trying to follow this tutorial on how to create outlook add ins. However when I get the dialog "Connect to Exchange Email Account" and add my account I get an error saying "Autodiscover service couldn't be located." At first I thought it was the authentication error mentioned in the page, but I didn't find that the deployment section. Any ideas how to solve this? All I need is to test the Add-in.

Outlook
Outlook
A family of Microsoft email and calendar products.
3,329 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,684 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
525 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChristyZhang-MSFT 22,071 Reputation points Microsoft Vendor
    2023-12-13T07:41:28.5133333+00:00

    Hi @BrunoT ,

    Welcome to our forum!

    According to your description, i notice that you have issues about add-in development, please kindly understand that Outlook tag here is mainly focus on general issues about Outlook desktop client.

    Based on my research on "Autodiscover service couldn't be located", i found a thread mentioned that this error could occur if you have not registered with your Exchange server. When you hit Debug, it will show a screen to you where you specify the Exchange server. You need that since it installs the app in Exchange and executes it from there. Your app won’t run without it. So the bottom-line is: you need a working Exchange server with AutoDiscovery on. More information: Can't locate the AutoDiscover service when running Outlook app from Visual Studio.

    (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Hope to help you! If the above doesn't help, i will add "Office Development" tag to better resolve your issue.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments