You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ews-managed-api tries to lookup the _autodiscover._tcp URL from the dns server like nslookup -type=srv _autodiscover._tcp.my_domain.local
which is fine, except it makes calls to dnsapi.dll on Linux !
Self-evidently, that fails.
Just writing that you can add the (pre-release) nuget-package System.DirectoryServices/4.5.0-rc1 and re-add the file Microsoft.Exchange.WebServices.Data\Autodiscover\DirectoryHelper.cs
And in Microsoft.Exchange.WebServices.Data\Autodiscover\AutodiscoverService.cs modify the function DefaultGetScpUrlsForDomain back to its original state:
/// <summary>
/// Defaults the get autodiscover service urls for domain.
/// </summary>
/// <param name="domainName">Name of the domain.</param>
/// <returns></returns>
private ICollection<string> DefaultGetScpUrlsForDomain(string domainName)
{
DirectoryHelper helper = new DirectoryHelper(this);
return helper.GetAutodiscoverScpUrlsForDomain(domainName);
}
then it will work (at least on Linux and Windows - tested).
ews-managed-api tries to lookup the _autodiscover._tcp URL from the dns server like
nslookup -type=srv _autodiscover._tcp.my_domain.local
which is fine, except it makes calls to dnsapi.dll on Linux !
Self-evidently, that fails.
The solution would be to do this with ArSoft (.NET Core DNS library).
The text was updated successfully, but these errors were encountered: