I'm trying to initialize a connection between a .NET Core application
and an xConnect installation
.
I ran into the following error:
An unhandled exception of type 'Sitecore.XConnect.XdbCollectionUnavailableException' occurred in mscorlib.dll The HTTP response was not successful: Unauthorized
Here is the stack trace:
at Sitecore.XConnect.Client.WebApi.ConfigurationWebApiClient.d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Sitecore.XConnect.Client.XConnectClientConfiguration.d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at CashRegisterApplication.Controllers.RegisterController.d__7.MoveNext() End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at CashRegisterApplication.Controllers.RegisterController.d__4.MoveNext()
I've been looking for what is causing this error for a while now but I can't find any leads, has anyone seen this before or does anyone have tips where I can start looking?
EDIT:
I decided not to include this because I have no clue if it has anything to do with it but on second thought it could ring a bell for someone so here it goes:
The Collection.ShardMapManager
database was created without a user, I added this user myself. I think it might have something to do with that. This post showed me there was no account configured for that database:
https://www.kasaku.co.uk/2017/11/05/sitecore-xconnect-shard-map-must-be-configured/