-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure with "Provider could not perform the action since the context was acquired as silent" #29419
Comments
I've never seen this error before. Here's some more info: https://docs.microsoft.com/en-us/windows/desktop/api/wincrypt/nf-wincrypt-cryptacquirecontexta
|
This is a test bug. The problem is that the test:
is trying to use a client certificate via 'Automatic' selection. That can have random effects on different machines. It's probably picking a certificate on your machine in the PerUser/MY store that requires user consent, i.e. a smart-card PIN or something. But the UI is disabled in System.Net layer. So, WinHTTP is returning this error. We probably should disable this test and try to fix it later. |
Thanks, David. I'll disable it. |
Triage: either try to fix the test or get rid of it for |
Could you please give it another try @stephentoub? (e.g. enable the test locally and run it) I could not reproduce it locally. We can perhaps catch this specific error and turn it into TestSkip. It seems like this was not failing in CI so it would still be better than keeping it disabled without path forward. Please let me know. |
@wfurt, sorry, I missed your question back in Nov. I just tried with the latest in main with the [ActiveIssue] removed, running the test suites for both System.Net.Http and System.Net.Http.WinHttpHandler, and everything passes. If no one else is hitting this, feel free to reactivate it. Thanks. |
I've been seeing this error not-infrequently in local System.Net.Http test runs.
"Error -2146893790 calling WINHTTP_CALLBACK_STATUS_REQUEST_ERROR, 'Provider could not perform the action since the context was acquired as silent.'"
The text was updated successfully, but these errors were encountered: