[maccatalyst] `System.Diagnostics.TraceSource.Config.Tests` fails with `ClientConfigurationHost` `MissingMethodException`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- csharp
- Domain
- mobile-dev, testing-qa
Research direction
Start in src/libraries/System.Diagnostics.TraceSource/tests/System.Diagnostics.TraceSource.Config.Tests/TraceSourceWithConfigurationTests.cs and inspect the existing ActiveIssue exclusions for tvOS, iOS, and Android. Confirm the MacCatalyst CoreCLR failure in the named ConfigurationTests, then update the existing exclusion if appropriate and verify the tests are excluded without affecting the passing Mono runs.
Written by the indexing model from the issue text.
Description
Related runtime issues: https://github.com/dotnet/runtime/issues/126460, https://github.com/dotnet/runtime/issues/74244, https://github.com/dotnet/runtime/issues/49062
Suggested labels: Known Build Error, test-failure, os-maccatalyst, arch-x64, arch-arm64, area-System.Diagnostics.TraceSource, area-System.Configuration, untriaged
Build Information
Build: 20260404.2, 20260405.1, 20260406.2
Build error leg or test failing: System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.ConfigWithEvents_RuntimeListener, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.Refresh_ChangeSwitch, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.Refresh_RemoveSource, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.RuntimeFilterChange, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.UnsupportedAttribute_Throws, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.AllTypes, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.Refresh_RemoveSwitch, System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.Switch_MissingValue_Throws, System.Diagnostics.TraceSource.Config.Tests.WorkItemExecution
Affected CI jobs: build_maccatalyst_x64_Release_AllSubsets_CoreCLR, build_maccatalyst_arm64_Release_AllSubsets_CoreCLR
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "System.MissingMethodException : Cannot dynamically create an instance of type 'System.Configuration.ClientConfigurationHost'. Reason: No parameterless constructor defined.",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Summary
System.Diagnostics.TraceSource.Config.Tests is failing consistently on MacCatalyst CoreCLR Release after the full MacCatalyst CoreCLR library legs were enabled in dotnet/runtime#125441. The generic XHarness bucket text mentions Process log exited with 137, but the uploaded testResults.xml and app log show the real failure is deterministic and test-specific:
System.MissingMethodException : Cannot dynamically create an instance of type 'System.Configuration.ClientConfigurationHost'. Reason: No parameterless constructor defined.
at System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(...)
at System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.CreateAndLoadConfigFile(String filename)
Observed behavior:
- All 8 tests in
System.Diagnostics.TraceSourceConfigTests.ConfigurationTestsfail in ~1 second on bothmaccatalyst-x64andmaccatalyst-arm64. - Every failing test goes through
CreateAndLoadConfigFile()insrc/libraries/System.Diagnostics.TraceSource/tests/System.Diagnostics.TraceSource.Config.Tests/TraceSourceWithConfigurationTests.cs. - The Apple test app is built through
ProxyProjectForAOTOnHelix.projwithTrimMode = link(confirmed from the uploadedAOTBuild.binlog), which matches the known trim incompatibility ofSystem.Configuration.ConfigurationManagerdescribed in #49062. - These tests are already excluded on
tvOS,iOS, andAndroidvia #74244, butMacCatalystis not currently included in thatActiveIssue.
Mono comparison
I checked the actual uploaded xUnit testResults.xml for the Mono MacCatalyst work items in build 20260406.2, not just the parent job status:
maccatalyst-arm64 Release AllSubsets_Mono→ Helix jobee05f111-cc24-47d1-8366-98c250455730maccatalyst-x64 Release AllSubsets_Mono→ Helix jobed8d84e6-59a6-46f2-8a43-2f400f24c10a
For both Mono runs, System.Diagnostics.TraceSource.Config.Tests reports:
total="8" passed="8" failed="0" skipped="0"- all 8
ConfigurationTests.*cases executed and passed
I also spot-checked the previous build 20260405.1; the same work item passed there on both Mono MacCatalyst queues as well. So this is not a case where Mono is silently skipping the test assembly: the tests genuinely run and pass on Mono, and the problem appears specific to the CoreCLR MacCatalyst configuration.
Likely causative commit
The most likely commit that introduced this failure into CI is:
0a726991ba— dotnet/runtime#125441, "Reduce Apple mobile CI matrix" (merged 2026-04-02)
Why this is the strongest candidate:
- The PR changed
eng/pipelines/extra-platforms/runtime-extra-platforms-maccatalyst.ymlto add the new fullmaccatalyst-{x64,arm64} Release AllSubsets_CoreCLRlibrary-test legs. - Those new CoreCLR library jobs build test apps with:
/p:UseMonoRuntime=false/p:UseNativeAOTRuntime=false/p:UsePortableRuntimePack=false/p:EnableAggressiveTrimming=true
- In builds before that change (for example 20260401.5 / build 1363261 and 20260331.6 / build 1361338), the MacCatalyst CoreCLR coverage was limited to
maccatalyst-arm64 Release AllSubsets_CoreCLR_Smokeplus runtime-test legs; the new full library-test job whereSystem.Diagnostics.TraceSource.Config.Testsnow fails did not exist yet.
I do not see evidence of a recent behavior-changing product commit in the relevant libraries:
TraceSourceWithConfigurationTests.cswas last changed substantively in older PRs such as #73087 and Android/mobile test annotation updates, not in the April 2026 regression window.ClientConfigurationHost.cshas no recent behavioral change; the only 2026 entry in file history is a mechanical volatile cleanup.
So the best read is:
- Exposure commit:
0a726991ba/#125441made these tests run in a new MacCatalyst CoreCLR + aggressive trimming configuration. - Underlying product issue: older
System.Configuration.ConfigurationManagertrim incompatibility already known from #49062.
This looks like a newly exposed mobile/trim incompatibility rather than a fresh product regression in System.Diagnostics.TraceSource. A practical next step is to extend the existing mobile skip for System.Diagnostics.TraceSource.Config.Tests to include MacCatalyst, unless there is interest in making this ConfigurationManager scenario work in trimmed Apple test apps.
[!NOTE]
This issue was filed with the assistance of GitHub Copilot.
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 0 |
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 589
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/runtime
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
area-System.Reflection blocking-clean-ci-optional Known Build Error os-mac-os-x untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area-CodeGen-coreclr untriaged
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
agentic-workflows untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
area-VM-meta-mono untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·