Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ResourceManager connection fails (SCARD_E_NO_SERVICE)

1,002 views
Skip to first unread message

Karl Thorén

unread,
Sep 25, 2003, 3:57:31 AM9/25/03
to
We have a problem with the smart card system on a WinXP
SP1 machine.
SCardEstablishContext() returns SCARD_E_NO_SERVICE.

The SCARDSRV.EXE is running correctly.

I have searched but not found any info on how to repair
the system.

How do I repair the system?

Best regards

/Karl Thorén

Jian-Shen Lin[MS]

unread,
Sep 25, 2003, 8:11:06 AM9/25/03
to
Hi Karl ,

We can't reproduce the same issue under WinXP, but we can share some
information with you:

If you write Gina component, SCardEstablishContext() will fail in the GINA
since the Smart card service has not been started when winlogon shows the
SAS.

If you want to call SCardEstablishContext from other session(such as
terminal session)
SCardEstablishContext is the one returning SCARD_E_NO_SERVICE. It detects
the session change and will return the error if it is not the session that
the application is running under.

Otherwise it will work succussfully, do you try to restart the smart card
service?

Thanks

Jian Shen

This posting is provided "AS IS" with no warranties, and confers no rights.

Karl Thorén

unread,
Sep 26, 2003, 9:40:36 AM9/26/03
to
On Thu, 25 Sep 2003 12:11:06 GMT,
js...@online.microsoft.com (Jian-Shen Lin[MS]) wrote:

>Hi Karl ,
>
>We can't reproduce the same issue under WinXP, but we can
share some
>information with you:
>
>If you write Gina component, SCardEstablishContext() will
fail in the GINA
>since the Smart card service has not been started when
winlogon shows the
>SAS.
>
>If you want to call SCardEstablishContext from other
session(such as
>terminal session)
> SCardEstablishContext is the one returning
SCARD_E_NO_SERVICE. It detects
>the session change and will return the error if it is not
the session that
>the application is running under.
>
>Otherwise it will work succussfully, do you try to
restart the smart card
>service?
>

All of my smart card applications are failing with this
error when they trying to run SCardEstablishContext().

The smart card service is restarted (The computer is
rebooted)

I have installed new smart card readers but I still get
the same error!


With best regards,
/Karl Thorén

Eric Perlin [MS]

unread,
Sep 26, 2003, 2:49:26 PM9/26/03
to
Please verify under which account the smartcard service runs (using
services.msc).
It should run as LocalService. Is it the case?
--
Eric Perlin [MS]

This posting is provided "AS IS" with no warranties, and confers no rights.
---

"Karl Thorén" <mo...@todos.se> wrote in message
news:208401c38433$c3f8b200$a101...@phx.gbl...

Karl Thorén

unread,
Oct 8, 2003, 11:17:47 AM10/8/03
to
I have read some logfiles that I recived from the user.
(He is using Windows XP SP1 swedish version)

And I found in the list of services that the smartcard
service is running as LocalService.

/Karl Thorén

>.
>

Jian-Shen Lin[MS]

unread,
Oct 8, 2003, 11:25:55 PM10/8/03
to
Hi Karl,

What is the error message in your event log (system and application)?
That may help to locate the root cause.

Thanks

Jian Shen

0 new messages