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.
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.