I maintain a website using Visual Studio 2010, asp.net, and vb.net for the code-behind. Yesterday my software was switched over to Visual Studio 2013 and I converted my 2010 project to the 2013 platform. Initially, the switch didn't seem to cause any unexpected errors. This morning, however, I have been unable to debug the program using breakpoints. I receive this error:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
I have checked other stackoverflow questions and have tried multiple solutions, such as:
- Cleaning and rebuilding application
- Rebooting Visual Studio and running as administrator
- Deleting Telerik references and then adding them again
- Checking to make sure debug = true is set in Web Config
- Turning Ajax to false to check if any different errors were received or fixed
- Checking that asp.net option in debugging is true
- Checking the options window for anything out of place
After all of this, the error still persists. I think it may have to due with some file not using .NET framework 4.5 and using 4.0 instead, but I am not sure how I would check this. Is there a for-all method where it will set all files to 4.5 framework instead of raking through each file and checking/changing?
EDIT
Matt Wilko's comment made me realize I forgot to add in another item that I tried. The answer on another stackoverflow question suggested deleting old .pdb files. Then you look at the symbol load information and compare that to the locations of the actual .pdb file.
I had tried this previously and I had 6 .pdb files located across 4 backup files, inside a debug folder within a backup folder, and then inside the bin folder. The symbol load information was searching inside the IIS, temp asp.net files folder, my local symbol cache, and then various Telerik folders. It is searching for Telerik.Web.UI.pdb and there is an error that states:
Cannot find or open the PDB file
However, the answer did not clearly specify how to rectify the situation. How do I point the symbol load information to the accurate folder where the .pdb files are being kept? Which file do I delete and keep?
EDIT 2
As a workaround for not being able to debug in Visual Studio 2013, I have copied my code and went back to 2010 to test. Now I am wanting to publish in 2013 after testing my program and I receive an error that states:
Could not find file obj/Release/Package/PackageTemp/bin/myproject.xml
I go to this location and the file in question is present. How do I fix this error? I am growing rather weary of all of the errors I am receiving in VS 2013. Should I just reinstall the entire thing?