Hi guys,
we are using the BC Outlook AddIn in an OnPrem environment with a local Exchange Server 2019.
I ve managed to get the Connection working with the contact AddIn and WITHOUT Entra. We are using the Classic NavUserPassword connection.
When using the Document View i ve get som errors.
First Error:
Category: Microsoft.Dynamics.Nav.WebClient.Controllers.AuthenticateServiceController
EventId: 0
ConnectionId: 0HN32JKIUL62T
RequestId: 0HN32JKIUL62T:0000000D
RequestPath: /XXX/auth
ActionId: df058e48-f071-48ab-aae4-4073fc44b676
ActionName: Microsoft.Dynamics.Nav.WebClient.Controllers.AuthenticateServiceController.InvokeMethod (Prod.Client.WebCoreApp)
MemberName: GetAccessTokenFromSharedCookie
FilePath: s://repo//src//Platform//Client//Web//Prod.Client.WebCoreApp//Controllers//Services//AuthenticateServiceController.cs
LineNumber: 347
Shared cookie was not found in the authenticate request.
Second Error
Server instance: XXX
Tenant ID:
Environment Name:
Environment Type:
User:
Type: System.AggregateException
Message: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (The request failed. Unauthorized)
HResult: -2146233088
----------------------------------
Type: Microsoft.Exchange.WebServices.Data.ServiceRequestException
Message: The request failed. Unauthorized
Source: Microsoft.Exchange.WebServices.NETStandard
HResult: -2146233088
----------------------------------
Type: Microsoft.Exchange.WebServices.Data.ServiceRequestException
Message: The request failed. Unauthorized
Source: Microsoft.Exchange.WebServices.NETStandard
HResult: -2146233088
StackTrace:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request, CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecuteAsync(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.ExecuteAsync(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem(ItemId itemId, PropertySet propertySet, CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem[TItem](ItemId itemId, PropertySet propertySet, CancellationToken token)
StackTrace:
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request, CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecuteAsync(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.ExecuteAsync(CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem(ItemId itemId, PropertySet propertySet, CancellationToken token)
at Microsoft.Exchange.WebServices.Data.ExchangeService.BindToItem[TItem](ItemId itemId, PropertySet propertySet, CancellationToken token)
----------------------------------
It seems like the addin uses a token in a cookie to authenticate against the server instance, but the cookie isnt there.
Does anyone have a clue?
Environment Information
BC Version 23.5 OnPrem
AddIn 2.1
Exchange 2019 OnPrem