Application Crash on Load with RadWebCam MFCreateDeviceSource failed with WIN32_ERROR_NOT_FOUND
Environment
| Product | UI for WPF RadWebCam |
| Version | 2025.4.1321 |
Description
I encountered an issue where my application crashes immediately on load after upgrading to the new RadWebCam control from the SharpDX version. The error message displayed is MFCreateDeviceSource failed: WIN32_ERROR_NOT_FOUND. The crash occurs before any source code execution, and troubleshooting steps such as validating the webcam functionality and permissions, creating a fresh test app, and revising NuGet dependencies did not resolve the issue.
Cause
The crash occurs due to the project's package management format being set to PackageReference, which leads to incomplete functionality of the Telerik NuGet package for the RadWebCam control. Additionally, the libSkiaSharp.dll file may not be correctly included during the publishing process.
Solution
To resolve the issue, follow these steps:
- Change the project's NuGet package management format from
PackageReferencetoPackages.config. - Ensure all required Telerik and SkiaSharp dependencies are correctly added to the project.
- Verify the presence of
libSkiaSharp.dllin thebin\x64folder. - Manually include
libSkiaSharp.dllin the publishing process, if necessary.