Hello!
I'm developing an application with a smart card involved (digital signature). Let's assume that we have the same code in this two contexts:
- Console application, executed by Administrator user
- Windows Service, executed by Administrator user
I suposed that if this two codes were executed by the same user they would have the same privileges. It seems that this is not true. When I try with the Windows Service (Executed with Administrator user) i receive
TargetInvocationException
CryptographicException
Can't initialize DLL provider at System.Security.Cryptography.Utils.CreateProvHandle(.
As far as I read on internet maybe is some king of permissions issue. Console Application works OK.
What is the difference between the Windows Service and Console Application if they are executed by the same user?
Is possible to achieve the same results with Windows Service?
Free virtual beers for the person who solves it ;)
Thanks!