manshuan
manshuan

Reputation: 11

VS-2012 : Breakpoint will not currently be hit. No symbols have been loaded for this document

I am not being able to debug the code for a MVC4 application in VS-2012. The same code was running fine a few days back. Error as below: Breakpoint will not currently be hit. No symbols have been loaded for this document.

I have tried below possible ways:

Any help on this is highly appreciated as I have gone through many threads but couldn't find a solution.

Upvotes: 1

Views: 1678

Answers (4)

Dag Baardsen
Dag Baardsen

Reputation: 922

Another thing to try is to enter the project properties (right click on the project in Project Explorer), Click the "Build" tab, Click "Advanced" in the lower right corner and choose an Output other then "None" (for example PDB-only). This should generate the necessary PDB file.

Advanced Build Settings

Upvotes: 0

Silvana Palazzi
Silvana Palazzi

Reputation: 1

What worked for me was to open the solution as administrator, right click on the web project--> properties -->Web--> IIS express--> project URL same as in your iis, create virtual directory. save, build, rebuild, publish, run.

Upvotes: 0

manshuan
manshuan

Reputation: 11

One change did the trick for me, though not sure what exactly fixed it. Couple of projects were hosted in IIS. I deleted all the hosted sites form IIS, configured them again and that worked for me. However, still not sure what exactly was wrong in IIS but yeah, it was IIS.

Upvotes: 0

Piyush Khanna
Piyush Khanna

Reputation: 306

Try exiting the IIS express, which will enforce visual studio to relaunch IIS express and load symbols.

Upvotes: 0

Related Questions