runtime: System.Media.SystemSounds.Beep.Play fails silently on Windows Server 2022 20348
Description
Attempting to emit a beep via System.Media.SystemSounds.Beep.Play fails silently on Windows Server 2022 20348.xxx. (The underlying user32!MessageBeep(0) also fails but because there’s no monitored location to file OS bugs at this time and this issue impacts .NET, I’m filing this here.)
Affects .NET Framework 4.x and .NET 5+ (via System.Windows.Extensions.SystemSounds).
Original report https://github.com/File-New-Project/EarTrumpet/issues/1210.
Reproduction Steps
-
Create a new C# .NET 5+ console project with top-level statement support
-
Paste in the following code, replacing any existing templated code
Console.WriteLine("Beep."); System.Media.SystemSounds.Beep.Play(); -
Compile/run app on affected OS version
-
Observe no sound emitted
Expected behavior
Beep.
Actual behavior
No beep.
Regression?
No response
Known Workarounds
No response
Configuration
Tested, not working: Windows Server 2022 20348.261 Windows Server 2022 20348.887
Tested, working: Windows 11 22000.739 Windows 11 25188.1000
Other information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (17 by maintainers)
The place to file OS bugs is the Windows feedback tool, category likely Developer Platform. Did you try that?