Skip to content
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

TLS error during test runs #46

Open
SirMrDexter opened this issue Dec 1, 2022 · 0 comments
Open

TLS error during test runs #46

SirMrDexter opened this issue Dec 1, 2022 · 0 comments

Comments

@SirMrDexter
Copy link

Setup: xunit plugin 1.3.1
TeamCity 2022.10
VS Project based on .Net 4.8 with XUnit 2.4.2
Tests should connect to any valid https URL

When running tests using Visual studio there's no issues.
But when the tests are run on TeamCity server we got below error.

System.ComponentModel.Win32Exception : The client and server cannot communicate, because they do not possess a common algorithm

To resolve it we had to add 2 files (xunit.console.exe.config) and (xunit.console.x86.exe.config) to buildAgent\tools\xunit-runner\bin\2.4.x directory based on suggestion from xunit/xunit#1659.

<runtime>
   <AppContextSwitchOverrides value="Switch.System.ServiceModel.DisableUsingServicePointManagerSecurityProtocols=false;Switch.System.Net.DontEnableSchUseStrongCrypto=false" /> 
</runtime>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant