Hi,
I have another question.
We are calling a powershell script that connects via Thumbprint through IIS. The application pool runs as the user that has the certificate in its store.
While the user is also connected via RDP, everything works fine.
If the user does not have an RDP session the connection fails (IIS website output):
Error Acquiring Token:
Could not use the certificate for signing. See inner exception for details. Possible cause: this may be a known issue with apps build against .NET Desktop 4.6 or lower. Either target a higher version of .NET desktop - 4.6.1 and above, or use a different certificate type (non-CNG) or sign your own assertion as described at https://aka.ms/msal-net-signed-assertion.
I don't get more output at this point.
Having a locked user session on this server is not really an option (reboot etc.). Any idea how this could work withour requiring an active session?
Thanks!
Edit:
Can't delete... so here is the solution:
IIS App Pool -> Advanced Settings -> Load Profile: Cahnge "False" to "True"
😃