I built a Web API ASP .Net Core (.Net) project and I'm trying to figure out why it is throwing an error. It has all the same code as our WCF Services, and yet it throws an error that doesn't happen in WCF. My question isn't in regards to the error, my question is why the debugger is not attaching to the lower level library.
Here you can see that the debugger is attached:
But, when I step over this line, I get the exception. However, the debugger doesn't break on the actual line of code where the error is happening. This is what I see:
When I look at the lower level method, I don't get the healthy red dot. I get a hollowed out dot probably indicating that the app is not using the same DLL that I am trying to debug:
So, why isn't the debugger recognising this lower level DLL? My debugger is set to break on all errors:
It's as though IIS express is picking up an older version of the DLL from somewhere. But, I've tried cleaning and rebuilding etc. I've also cleaned out the Temporary ASP .Net files. I'm stuck.