I am receiving "The credentials supplied to the package were not recognized" message when attempting to send a push notification from a site in IIS.
I have a console application that runs exactly the same code on the server which runs fine, it is just when it is from IIS.
I have tried the solution here: PushSharp - The credentials supplied to the package were not recognized
I tried:
"C:\Program Files (x86)\Windows Resource Kits\Tools\winhttpcertcfg" -i certificate.p12 -c LOCAL_MACHINE\My -a "NetworkService" -p <Password>
This is the account that IIS runs from. I have also tried for IIS_IUSRS, USERS but I still get the credentials error
I have also checked that I'm only exporting the Private Key and not the certificate, also I have tried both ways
Is there anything else I can try? It seems odd that it is only IIS that cannot send the push notification
If it works in Console but not in Service, I got one possible culprit: Interactive Sessions.
For security reasons Services since Vista run in non-Interactive Sessions. That means they can not make screenshoots, override the UAC, or interact with the users desktop in any other way.
A handfull of rather old code also requires Interactive Sessions. Particulary the (t)rusty Office COM interop is know to either needing that right, or it will simply not run.
It might just be relevant to your case.