Forum Discussion

Bhest's avatar
Bhest
Copper Contributor
Jul 25, 2023

Exchange Connector Issues. SM2019

Hello,

 

Current Issue: Trying to set up exchange connector 4.1 to SCSM 2019. Copied the DLLs, Azure Application is setup correctly, mbp imported. When I try to add a new Exchange connector, I am unable to validate the credentials. Looking at firewall traffic, the connection attempt does not even leave the server. Even Viewer shows "Exchange Connector: Failed to get exchange service url, details: One or more errors occurred."

 

Trying to authenticate to office 365 using tenant and client ID.

Exchange url: https://outlook.office365.com/EWS/Exchange.asmx

 

This server was working until I deleted the Management Group from Monitoring Agent. It was on 2016. Some workflows were acting off, there were errors for the Management Group and thought "I'll just reconnect it". That did not go as according to plan and completely broke all connectors. In my defense I am new to SCSM and since it said monitoring, didn't think any critical services were dependent on it. Unfortunately, this Server was missed in the backups, so I could not revert to the previous state.

 

I couldn't figure out how to re-add the management group, so I upgrade to SM2019 in hopes that it would reconfigure upon install. This did not happen, so I re-installed and connected to the same DB. The management group was created, but I couldn't use any of the existing connectors. I was able to create new AD connectors without issue, but couldn't do the same for exchange. Everything else appears to be working and communicating properly, and thankfully the self-service portal works so there is at least a method to still submit tickets.

 

I'm pretty new to using Service Manager and used to more modern ticketing solutions. Unfortunately a group of people still use it in our environment and were having issues which led me down this road.

 

I'm not sure how to troubleshoot further. I've removed all the old exchange connectors, tried removing all the connector dlls and management packs to start fresh, but encountered the same error when adding again.

 

Defender firewall is disabled.

 

These 3 errors are thrown in succession when attempting a connection. I can't make heads or tails of what's happening or where. I'd appreciate any suggestions, I think the pitchfork mob is going to assemble soon.

 

Exchange Connector: Failed to get exchange service url, details: One or more errors occurred.

 

 

Exchange Connector: Unknown error : System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'autodiscover.myDomain'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection.GetExchangeServiceUrl(String emailId)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection.PopulateExchangeServiceOnline(String userName, String clientId, String tenantId, String password)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection..ctor(IExchangeConnectorLogger logger, String loginUsername, String loginDomain, String loginPassword, String impersonationEmailAddress, String serverUrl, Boolean onlyRedirectOffice365, Boolean ewsOnline, String clientId, String tenantId)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'autodiscover.myDomain'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---<---

 

 

 

Exchange Connector: Unable to validate credentials, please refer to the event logs for more information (Error Type=AggregateException, Message=One or more errors occurred.)
Additional Details:
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'autodiscover.myDomain'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection.GetExchangeServiceUrl(String emailId)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection.PopulateExchangeServiceOnline(String userName, String clientId, String tenantId, String password)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection..ctor(IExchangeConnectorLogger logger, String loginUsername, String loginDomain, String loginPassword, String impersonationEmailAddress, String serverUrl, Boolean onlyRedirectOffice365, Boolean ewsOnline, String clientId, String tenantId)
at Microsoft.SystemCenter.ExchangeConnector.ExchangeConnection.ValidateConnection(IExchangeConnectorLogger logger, String loginUsername, String loginDomain, String loginPassword, String impersonationEmailAddress, String serverUrl, Boolean onlyRedirectOffice365, Boolean ewsOnline, String clientID, String tenantID, String& errorMessage)
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'autodiscover.myDomain'
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---<---

Resources