I have ASP.NET core 5 web API that communicates with NAV referenced service using WCF in C# everything is fine when I'm running the app in visual studio but when I publish the project to the server I get 500 error on every endpoint that is using referenced service. here is the error log:
Dec 06 13:43:49 spardev.local spo-api[14418]: fail: Microsoft.AspNetCore.Server.Kestrel[13]
Dec 06 13:43:49 spardev.local spo-api[14418]: Connection id "0HMDONPM621RV", Request id "0HMDONPM621RV:00000002": An unhandled exception was thrown by the application.
Dec 06 13:43:49 spardev.local spo-api[14418]: System.PlatformNotSupportedException: NTLM authentication is not possible with default credentials on this platform.
I have even served the project on my local IIS but I get the same error.
What is the problem? Am I missing something?