portabledeviceapi.dll Error in Windows 10 and 11: Phone and camera transfer errors

A photo-import app cannot see a phone or camera and names portabledeviceapi.dll.
What this DLL does
Windows applications use the Portable Devices API to enumerate and communicate with supported portable devices.
Start with this check
Unlock the device if required and select its approved data-transfer mode. Check whether File Explorer can browse its allowed folders with the same cable.
Write down the exact message, the time, and what you were doing. If the application closes, open View reliability history from Start, select the matching failure, and copy its technical details. An exception code, full module path and application version help identify the next test.
Choose the appropriate repair
Use a data-capable cable and the manufacturer’s supported transfer steps. If Explorer works but one app fails, check that app’s compatibility before reinstalling Windows components.
Use Microsoft’s application repair options when only one program fails and its publisher supports those options. If multiple built-in Windows features fail and there are signs of Windows system file corruption, follow Microsoft’s DISM and System File Checker instructions in that order. Use trusted Windows or publisher packages when restoring DLLs.
Verify the result
Copy an authorized test photo or file, then open it on the PC and confirm its size or contents. Keep the original error information until the same operation also works after a restart.
The DLL Errors & Fixes Library includes related troubleshooting, including wiaaut.dll. Reference: Microsoft’s Windows Portable Devices documentation.