© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
36 replies
Lexan

Convert to wave file gives COMException

Hello! I have rest API using ASP.NET Core app .net 7 and I'm trying to convert a WebM file into a wav file in runtime,

I'm using NAudio and this code :

using (var reader = new MediaFoundationReader(WebMFilePath))
{
WaveFileWriter.CreateWaveFile(WaveFilePath, reader);
}

This works perfectly locally. But when I deploy and run it gives me this exception:

"error": { "message": "The data specified for the media type is invalid, inconsistent, or not supported by this object. (0xC00D36B4)", "exception": "COMException" }

I have no clue on what to do with it or how to move forward.
Any help is appreciated 🙏
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Convert EPS file to SVG?
C#CC# / help
2y ago
❔ Convert cshtml view to PDF file
C#CC# / help
3y ago
✅ c# to convert msg file to pdf?
C#CC# / help
3y ago
Convert a Binary string to a file
C#CC# / help
2y ago