Share via


The breakpoint will not currently be hit. A copy of ....cs was found in ....dll, but the current source code is different from the version built in the .dll version

Question

Tuesday, May 3, 2016 2:17 AM

Hi,

Since 2 weeks I have errors like this one (you should see the picture bellow):

The breakpoint will not currently be hit. A copy of ....cs was found in ....dll, but the current source code is different from the version built in the ....dll version.  

NOTE: This is what I see when I click over the breakpoint (wich is not full red as usually, but only circle in red)...

I have tried many solutions like:  to delete the “C:\Users\info\AppData\Local\Temp\Temporary ASP.NET Files\vs files” and also the “C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\.

Also I have Clicked "Clean” and then “Rebuilt”…
Many other trick... it never works since 2 weeks! It sticks there!

I don’t know what to do anymore... my current project as face many strange things like that one...
Why this happens? Please someone help me!
Jean-Claude

All replies (3)

Wednesday, May 4, 2016 3:26 AM

Hi Jean-Claude,

According to the error message, this problem is caused by the different code between the .cs file which compiled in .dll and the code in your working Text Editor.

Please try set the Allow the source code to be different from the original in the breakpoint settings as the message provided.

In addition, please try delete all files in bin/debug folder for your project and then build your coded again to check whether this problem can be fixed.

Best Regards,
Weiwei

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Thursday, May 12, 2016 6:10 AM | 1 vote

Hello Weiwei!

Thanks for your help.

I have try to delete manually and all those tricks as I said...  one time it works but it continue again and again and now all these manual cleanning are not working at all!

I have give a try to your suggestion to "Allow the source code to be different from the original in the breakpoint settings as the message provided."  It work for one breakpoint so it as help for one debug... bug what I dont like it that the problem is still there!  No?
I feel its like suppose your car make strange noises, you got the option to put-up the music loud enought so you dont here the motor problem anymore!...  but later you will have a bad suprise!  lol

Evenmore I have another error message now!

I think I am gone have to spend money on Microsoft concierge $upport...
Would it be a good call for me?

Please help.  Am I the only one to have this problem... Is it my SSD hard drive?

Best regards, 
Jean-Claude


Friday, May 13, 2016 2:25 AM

Hi Jean-Claude,

The breakpoints don't hit is a common issue. This can be caused by different reasons, such as code of dll changed, the pdb file for the dll not load, the referenced dlls' target platform is different with current platform version and so on.

According to the second screenshot, please refer to following thread, which gets the same message for the breakpoint. It provide some possible reasons for this issue. Hope it can help you.

http://stackoverflow.com/questions/6100871/visual-studio-breakpoint-warning

Best Regards,
Weiwei

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.