'An error occurred while connecting to the server:The Autodiscover service couldn't be located. While making Web-addin in Visual Studio?
Thank you first. Hi, I'm making a web add-in in Visual Studio for Outlook, but while trying to run the for the first time it's throwing the following error.
Error An error occurred while connecting to the server:
The Autodiscover service couldn't be located.
I really need help with this. I didn't find anything on the internet that could help me.
Solution 1:[1]
It seems you need to enable Modern Authentication on your O365 tenant. See Basic Authentication and Exchange Online – February 2021 Update for more information.
Also you may find the Enable or disable modern authentication for Outlook in Exchange Online article helpful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eugene Astafiev |
