"No symbols have been loaded for this document." But they have!

balexandre picture balexandre · Apr 12, 2011 · Viewed 38.7k times · Source

As you can notice

enter image description here

Symbols are been correctly loaded.

I just created a view GetCompanies.cshtml using the AddView shortlink

enter image description here

But, no matter what I do, I can't debug in the View.

What I did so far:

  • Close and Open Solution
  • Close and open Visual Studio
  • Shutdown all ASP.NET Development Server's
  • Deleted all Symbol Libraries .pdb
  • Clean Solution
  • Re-Build Solution

did not (yet) shutdown Windows 7 x64 :-/

Answer

any picture any · Nov 13, 2012

Sometimes if you have a hard stop, Visual Studio temp cache will be screwed. Clear the cache by deleting these folders:

C:\Windows\Microsoft.NET\Framework\<.net version>\Temporary ASP.NET Files\(ApplicationName)
C:\Windows\Microsoft.NET\Framework64\<.net version>\Temporary ASP.NET Files\(ApplicationName)