wlidfdp.dll Error in Windows 10 and 11: Account discovery output

An account-discovery feature cannot find the expected personal Microsoft account, but web sign-in works.
The Windows file inventory identifies wlidfdp.dll as Microsoft® Account Function Discovery Provider. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Compare the account in Settings and the app’s intended connector. Record which view names the Microsoft Account Function Discovery Provider.
Check which account the affected app is looking for. Open Settings → Accounts → Your info and note the account type. Then look at the account selected in the app without removing a working sign-in. Microsoft’s Windows account guidance explains the account options. If normal sign-in succeeds but the app lists the wrong account, report that distinction to its publisher. After repair, check that the original account picker lists the correct account.
Repair the affected feature
Update the affected app and use approved device account settings. Contact the work administrator for a managed identity.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Check the same account discovery screen and verify the original account is present.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.