Reputation: 567
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.
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
bin
and obj
folders > Rebuild > debugOptimize Code
is not checkedEnable Just My Code
is checkedCreate Virtual Directory
buttonC:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
, %AppData%\Local\Temp\Temporary ASP.NET Files\
, and %USERPROFILE%\Documents\My Web Sites
> changed the port number in the Project Url
on the Web tab of the Project PropertiesQuestion
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
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