Hi Every,
Forgive me if I am unable to explain my problem in a proficient way. My problem is When I click on "Connect to outlook" It say sync to exchange is disabled due to errors.
I did a lot of googling but failed to find the solution. Site inboxes can be configured for a team-site. It means o-authentication is working between SharePoint 2013 and Exchange 2013. When I see partner application It gives me only one partner application i.e. SharePoint. I have two separate web applications. One hosts corporate team site collection and other hosts mysite. Search is working although with some errors in log. These are regarding errors in Parser application while indexing a specific document. Search Results are returning so it looks Search Application is working. MyTask list is showing me the tasks assigned from a team site therefor Work Management Application is working as well. The ULS log shows following error
10/15/2018 14:38:18.02OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerWork Management Serviceahw6qMediumSuccessfully loaded the personal sitefor user 1d854014-d803-4cbe-ae3d-c833cf31fe19 at url https://mysite.mydomain.local/personal/Emp_Name and id f4e1118a-3cb3-4ab9-8619-f2bde6e9b6c9.b62cf029-48f2
-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.02OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerWork Management ServiceajsciMediumTrying to start Exchange Sync for user
with id 1d854014-d803-4cbe-ae3d-c833cf31fe19 b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.06OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerWork Management Data ModelaimqeMediumAbout to execute query on 1
logical tablesb62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.08OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerWork Management Data Modelah32wMediumRead singleton item of type
SPRefreshStateFieldManager from list successfully. Id is 1b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.10OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint FoundationDev EventsajbpnMediumSet EventFiringDisabled to [True]. Stack trace: [
at Microsoft.Office.Server.WorkManagement.DataModel.SingletonCache`1.Update(TCore toWrite) at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.<>c__DisplayClass5.<>c__DisplayClass7.<TryCreateRefreshJob>b__4(GlobalRefreshState refreshState)
at Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.TryCreateJobCore(GlobalRefreshState refreshState, RefreshType type, Nullable`1
minimumTimeBetweenRefreshes, Func`2 tryWriteUpdate) at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.<>c__DisplayClass5.<TryCreateRefreshJob>b__3() at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.TryCreateRefreshJob(RefreshType type, Nullable`1 minimumTimeBetweenRefreshes) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.RefreshJobManager.TryCreateRefreshJob() at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.FarmRefreshJob.TryCreateRefreshJob(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.MultiFarmRefreshManager.BeginFarmLevelRefresh(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.MultiFarmRefreshManager.BeginMultiFarmRefresh(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.RefreshManager.BeginRefreshForExchange() at
Microsoft.Office.Server.WorkManagement.WorkManagementServiceApplication.<>c__DisplayClass4.<BeginExchangeSyncActingAsCurrentUser>b__3() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.<>c__DisplayClass1.<ExecuteCodeInsideWmaContext>b__0() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.ExecuteCodeInsideWmaContext(Action toRun, WmaContextType allowedContexts) at
Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.<>c__DisplayClass21.<RunSyncForUser>b__20() at
Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.ExecuteWithImpersonation(Byte[] userToken, Guid accountUid, Action toRun)
at Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.RunSyncForUser() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.<>c__DisplayClass1.<ExecuteCodeInsideWmaContext>b__0() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.ExecuteCodeInsideWmaContext(Action toRun, WmaContextType allowedContexts) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteAndEnsureContextValid(Action toRun, TContextState serviceUserState, String actionName)
at Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteInSpContext(ThreadParams threadParams) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteInDiagnosticScope(ThreadParams threadParams) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.Run(Object tParams) at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx) at
System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() ]
b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.14OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint FoundationDev EventsajbpnMediumSet EventFiringDisabled to [False]. Stack trace: [
at Microsoft.Office.Server.Utilities.EventReceiverUtility.DisabledEventFiringScope.Dispose() at
Microsoft.Office.Server.WorkManagement.DataModel.SingletonCache`1.Update(TCore toWrite) at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.<>c__DisplayClass5.<>c__DisplayClass7.<TryCreateRefreshJob>b__4(GlobalRefreshState refreshState)
at Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.TryCreateJobCore(GlobalRefreshState refreshState, RefreshType type, Nullable`1
minimumTimeBetweenRefreshes, Func`2 tryWriteUpdate) at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.<>c__DisplayClass5.<TryCreateRefreshJob>b__3() at
Microsoft.Office.Server.WorkManagement.Internal.RefreshStateManager.TryCreateRefreshJob(RefreshType type, Nullable`1 minimumTimeBetweenRefreshes) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.RefreshJobManager.TryCreateRefreshJob() at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.FarmRefreshJob.TryCreateRefreshJob(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.MultiFarmRefreshManager.BeginFarmLevelRefresh(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.MultiFarmRefreshManager.BeginMultiFarmRefresh(RefreshJobManager jobManager) at
Microsoft.Office.Server.WorkManagement.Internal.TaskAggregator.RefreshManager.BeginRefreshForExchange() at
Microsoft.Office.Server.WorkManagement.WorkManagementServiceApplication.<>c__DisplayClass4.<BeginExchangeSyncActingAsCurrentUser>b__3() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.<>c__DisplayClass1.<ExecuteCodeInsideWmaContext>b__0() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.ExecuteCodeInsideWmaContext(Action toRun, WmaContextType allowedContexts) at
Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.<>c__DisplayClass21.<RunSyncForUser>b__20() at
Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.ExecuteWithImpersonation(Byte[] userToken, Guid accountUid, Action toRun)
at Microsoft.Office.Server.WorkManagement.Internal.ExchangeUserManager.ExchangeSyncUserRunner.RunSyncForUser() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.<>c__DisplayClass1.<ExecuteCodeInsideWmaContext>b__0() at
Microsoft.Office.Server.WorkManagement.Internal.WmaContextUtils.ExecuteCodeInsideWmaContext(Action toRun, WmaContextType allowedContexts) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteAndEnsureContextValid(Action toRun, TContextState serviceUserState, String actionName)
at Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteInSpContext(ThreadParams threadParams) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.ExecuteInDiagnosticScope(ThreadParams threadParams) at
Microsoft.Office.Server.WorkManagement.Internal.BaseContextRunner`2.Run(Object tParams) at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx) at
System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() ]
b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.19OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerWork Management Data ModelaimqeMediumAbout to execute query on 1
logical tablesb62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.21OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerExchange Task SynchronizationajjucMedium[Exchange Sync 1d854014-d803-
4cbe-ae3d-c833cf31fe19 84] EwsRequestHttpHeaders: <Trace Tag="EwsRequestHttpHeaders" Tid="56" Time="2018-10-15 09:38:18Z"> POST /EWS/Exchange.asmx HTTP/1.1 Content-
Type: text/xml; charset=utf-8 Accept: text/xml User-Agent: SharePoint/15/Work Management (ExchangeServicesClient/15.00.0516.014) Accept-Encoding: gzip,deflate
client-request-id: b62cf029-48f2-4299-9edf-2a14d7d8dba6 Authorization: Bearer </Trace> b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.22OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerExchange Task Synchronizationaje6lMedium[bucketHash:61B8E243]
[Exchange Sync 1d854014-d803-4cbe-ae3d-c833cf31fe19 84] Exception when validating connection for user. Exception details follow. Type:
'Microsoft.Exchange.WebServices.Data.ServiceRequestException', message: 'The request failed. The request was aborted: The request was canceled.' and stack trace:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request) at
Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request) at
Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute() at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder[TFolder](FolderId
folderId, PropertySet propertySet) at Microsoft.Office.Server.WorkManagement.Internal.ExchangeServices.TestExchangeConnection().b62cf029-48f2-4299-9edf-
2a14d7d8dba6
10/15/2018 14:38:18.22OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerExchange Task Synchronizationaje42Medium[Exchange Sync 1d854014-d803-
4cbe-ae3d-c833cf31fe19 84] The url in the cache is not valid for for user. We are trying to update the EWS url.b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Server SearchExchange Integrationah9c0MediumOAuth Exception: Authentication realm
value must be specified either in the request or in the challenge.b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Server SearchExchange Integrationah9c1MediumServiceRequestException: The request
failed. The request was aborted: The request was canceled.b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Server SearchExchange IntegrationaiwxiMedium
SearchServiceApplication::ExchangeAdapter::SharePoint CorrelationId:; Exchange Request Id:; Diagnostic Info:b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Server SearchExchange Integrationai1piMediumAutodiscover Diagnostics EWS Client
Version: 15.00.0516.014b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint FoundationMonitoringb4lyHighLeaving Monitored Scope ([Exchange Sync 1d854014-d803
-4cbe-ae3d-c833cf31fe19 84] InitExchangeServiceForUser). Execution Time=104.3212b62cf029-48f2-4299-9edf-2a14d7d8dba6
10/15/2018 14:38:18.24OWSTIMER.EXE (0x9DA8)0xB7B0SharePoint Portal ServerExchange Task Synchronizationaje61MediumFailed to connect to exchange
for user: 1d854014-d803-4cbe-ae3d-c833cf31fe19 b62cf029-48f2-4299-9edf-2a14d7d8dba6
It seems there is some kind of authorization barrier. as there an exception rises when user is being authenticated. "Exception when validating connection for user." Any help will be a great blessing for me.
Muhammad Masood