microsoft-windows-internal-shell-nearshareexperience.dll Error in Windows 10 and 11: Windows Nearby sharing prompts

Nearby sharing can see another PC but stop before displaying or accepting the transfer prompt.
The Windows file inventory identifies microsoft-windows-internal-shell-nearshareexperience.dll as NearByShareExperience. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Confirm both devices use supported Windows versions and the expected visibility choice. Test a small non-sensitive file between your own devices.
Retest with one small text file. On both Windows 11 devices open Settings → System → Nearby sharing and check the intended visibility. Choose My devices only when both PCs use the same Microsoft account and that is the intended setting. Share a small text file to the correct device and watch for the receive prompt. If it is discovered without a prompt, check the receiver’s notifications. Microsoft’s Nearby sharing troubleshooting covers discovery and notification checks.
Repair the affected feature
Restore the intended Nearby sharing setting and test on the supported Bluetooth or local network connection. Exclude unapproved devices from the sharing scope.
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
Send the test file again and confirm the recipient can open it from the expected location.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.