"No breakpoint will be deleted at this time" is displayed in a partial image

In a specific partial view, I sequentially receive a message at the breakpoints that I set:

"No breakpoint will be deleted at this time. No characters have been loaded for this document."

Is there a reason for this? What can I do?

I restarted Visual Studio, and I even restarted my computer, but that didn't work.

What do I need to do to debug this page?

Thanks!

Edit

I am editing a partial view file that I am having problems with, but the changes DO NOT take effect. So, somehow this bastard compiler gets the file from another place. Where?!

+7
debugging visual-studio-2010
source share
4 answers

There are several possible reasons for this:

  • The version of the source file is not the one you compiled. Try recompiling.
  • The DLL containing the code is not loaded into the program at runtime. Use the program in such a way that the DLL is needed if you dynamically load the DLL.
  • You visualize a source file that is not in the correct directory (another copy of the solution somewhere else on the hard drive). Open the correct source file.
  • You did not compile the program in debug mode. Recompile it in debug mode.
  • You did not run the program in debug mode. Run it in debug mode.
+7
source share

I had the same situation after changing the view that was used to debug ok. I reverted my changes and debugging resumed. I found that I had a syntax error in a string. There was no clue that it was wrong - there was no red underline, and the project was excellent.

If you have a problem from your point of view, I suggest commenting on most of the code to the minimum skeleton. If debug works again, uncomment some of your lines until you find the problem code. Good luck with that.

+7
source share

This happens to me too ... it's a real pain in the ass. The reason is because your PDB files are missing from C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Temporary ASP.NET files \ root [random] [random] \ assembly \ dl3 [random] [guid]

I have about 30 DLL files that are created with my project, I have to go into each of these silly temp directories and copy the PDB file for each DLL from my VS collector. I also asked questions about this, but did not get any help. For a quick fix, you can try copying the corresponding pdb files, but I tell you that it will soon become old.

Someone else in my office fixed the problem using the Publish function in Visual Studio and published their site directly in the web directory, but I still did not have time for this. Someone else told me that this is an x64 error in Visual Studio, but I find it hard to believe, considering how harmful this is.

+2
source share

How I solved this by going to the properties (F4) of the file and setting the Build Action value to compile.

0
source share

All Articles