“The breakpoint will not currently be hit. A copy of file was found in dll file, but the current source code is different”

后端 未结 12 2971
名媛妹妹
名媛妹妹 2021-02-19 13:06

I keep getting this error saying there\'s a copy of the .cs file hence the break point will not get hit.

I have tried cleaning solution, rebuilding , deleting the .pdb

12条回答
  •  天命终不由人
    2021-02-19 13:39

    Here are some things to look at:

    1. If you've recently changed namespacing or class names, an old version of the dll may be hanging around in the asp.net cache. Often deleting the files here and rebuilding will solve the issue.

    c:\Users\yourname\AppData\Local\Temp\Temporary ASP.NET Files\

    1. Check your views to make sure your referencing the right class names.

提交回复
热议问题