Troy
Troy

Reputation: 567

How do I prevent Visual Studio from loading a PDB from Temporary ASP.NET Files

I am working on a multi-project solution in Visual Studio 2015 Professional that includes some libraries and an ASP.NET Web MVC application on a system used by multiple developers.

Problem When I set a breakpoint and run the web application with debugging, IISExpress starts but the breakpoint is disabled with the following message.

Screenshot of the message explaining why the breakpoint is disabled.

When I check the Modules window it shows that symbols have been loaded for all the projects in the solution from various folders under this location C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

What I've Tried

Question

How can I get Visual Studio to load the symbols from the project bin folder like it should be doing to begin with?

Upvotes: 2

Views: 2072

Answers (1)

LoLance
LoLance

Reputation: 28146

Here're two tips you may try:

1.For the project where you set the breakpoints, right-click project=>Properties=>Build tab(Debug Configuration)=>Advanced=>Set the Debug information to Full

2.Empty the Symbol cache, turn off shadow copying to force it to load assemblies from your bin folder instead of Temporary Asp.net Files folder when running the application.(It will load xx.dll from bin, but I'm not certainly sure it will also load pdb from bin...)

Hope it helps:)

Upvotes: 3

Related Questions