Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Autodiscover blocked a potentially insecure redirection to ...

$
0
0
Hello.
I have two custom sharepoint 2016 server jobs. Both of them using EWS for connecting to Excange mailbox. When both jobs running simultaneous on one application server (there are two application servers in  my farm), I have error only in one job «Autodiscover blocked a potentially insecure redirection to https://cas.domain.com/autodiscover/autodiscover.xml. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload.». I have this VB code in both of my applications:
exchange = New ExchangeService(ExchangeVersion.Exchange2007_SP1)
exchange.Credentials = New WebCredentials(account, password, domain)
exchange.AutodiscoverUrl("account@domain.com")
But, when both jobs running in different application servers there is no error.

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>