Hello, Welcome to Microsoft Q&A,
Please make sure to enable developer mode on both the HoloLens device and the Windows PC. Additionally, verify that the HoloLens device is properly connected to the Windows PC during deployment. For more detailed instructions, please refer to Using Visual Studio to deploy and debug - Mixed Reality | Microsoft Learn. Please let me know if this issue still exists after you tried the above steps.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.