I've got a smart card reader and a server application using it as a security module. If I run it under DOS prompt, everything is fine. The server is running and clients can connect to it. I tried to install the server as window service and start it. The server starts but always gives back authentication error because it cannot call the smart card to do encryption.

Then I tried to start it with task scheduler and set the trigger factor as "on startup". The server starts also but still cannot access the smart card reader.

Then I tried remote desktop to the machine and run the server application under DOS prompt. Same error is returned.

The situation is that the smart card reader only works under active console desktop environment. In the server application, WINSCARD API is used to access the smart card reader. Any suggestion so that we can access the smart card reader in running services?

OS: Windows Server 2008

Smart Card Driver: Windows USB smart card Reader

Smart Card API: WINSCARD

link|improve this question
This would be better suited to ServerFault or StackOverflow – Darth Android Jun 2 '10 at 10:36
please don't crosspost this question; it can be migrated as necessary. unless this is a server application in development, it is more appropriate to Server Fault than Stack Overflow. it will be migrated shortly. – quack quixote Jun 2 '10 at 12:59
@Darth Android: when suggesting another Trilogy site as a better place to ask a question, you should also inform new users that the question can be migrated, and ask them not to crosspost. thanks. – quack quixote Jun 2 '10 at 13:01
feedback

migrated from superuser.com Jun 2 '10 at 13:02

This question came from our site for computer enthusiasts and power users.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown