No Disk error occurring while profiling application
Published 14 May 2018
When performance or memory profiling an application, it may return an error message similar to:
MyApplication - No Disk
-----------------------------------
There is no disk in the drive.Please insert a disk into drive
\Device\Harddisk1\DR2
This can happen when the source code location matches a removable drive that has been disconnected. It does not matter if the software was built on a completely different computer - if the drive letter is the same as a disconnected removable drive on the computer used for profiling, this error will occur.
There are a few possible ways to fix this:
- Reconnect the removable drive
- Disconnect the removable device that normally mounts the drive
- Change the drive letter using Windows Computer Management Console (Disk Management)
- Delete the PDB files applicable to the code you are profiling