Try closing the visual studio after closing all open files in it. Then go to the bin folder for debugging and delete all the .pdb files. Now open a visual studio and rebuild your project or do a clean and build so that you are in debug mode, not release mode. This problem may occur if your pdb files become locked. If you have a pdb file present for this DLL, then it should pick up this module for debugging.
If this does not work, restart the machine? If you do not try to reboot, as sometimes the process can get into Windows, and restarting will release the lock to overwrite the files.
Quick question. Is the module in question an external module or is it part of your current solution that you are debugging? If this is an internal module, then the above solutions should definitely work, since you will create a new .pdb file for this assembly.
source share