D365 CRM Environment Url is accessible in .NET Framework 4.8 unit test project in TeamCity build agent, but it is not accessible in .NET 6 unit test project. Error: "No such host is known" is shown.
Hi,
I am using TeamCity 2019 On-Premises.
D365 CRM Environment Url is accessible in .NET Framework 4.8 unit test project in TeamCity build agent, but it is not accessible in .NET 6 unit test project. Error: "No such host is known" is shown.
I have configured the proxy settings correctly and the unit tests for the .NET 6 unit test project are passing in local environment. But still the D365 CRM Environment Url is not accessible in .NET 6 unit test project in TeamCity build agent (Error: "No such host is known").
Please let me know the solution for this issue.
Please sign in to leave a comment.
.NET 6 was released in 2021. Unexpected behavior might arise when trying to use it in TeamCity 2019. I'd strongly recommend upgrading, or at least setting up a test 2023.05 set up where you test if the same issue happens. If the issue still replicates, please follow the steps here: https://www.jetbrains.com/help/teamcity/common-problems.html#Build+works+locally+but+fails+or+misbehaves+in+TeamCity