"该断点当前不会被命中。在dll文件中找到了文件副本,但是当前源代码不同。 [英] "The breakpoint will not currently be hit. A copy of file was found in dll file, but the current source code is different"

查看:657
本文介绍了"该断点当前不会被命中。在dll文件中找到了文件副本,但是当前源代码不同。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直收到此错误消息,说存在.cs文件的副本,因此不会遇到断点。

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

我尝试清洁解决方案,重建,删除obj和bin文件夹中的.pdb文件,关闭VS并重新启动,然后重新启动整个计算机(这是Windows!有时最复杂,无法解释的问题可以这样解决:\)

I have tried cleaning solution, rebuilding , deleting the .pdb files in the obj and bin folders, closing VS and restarting it, restarting the whole machine (It's Windows! Sometimes the most complicated, unexplained problems get fixed like this :\ )

任何想法我还能尝试什么?这是在VS2015上的.net项目

Any idea what else I can try? it's a .net project on VS2015

< img src = https://i.stack.imgur.com/pLjAW.png alt =断点错误>

推荐答案

我发现了问题,事实证明IIS配置为使用备份文件夹中项目的其他副本。这听起来很傻,但是如果有人有类似的问题,我将继续公开这个问题。

I found the issue, it turns out IIS was configured to use a different copy of the project I had in my backup folder. It sounds pretty silly but I'll keep this question open if someone had something similar.

这篇关于&quot;该断点当前不会被命中。在dll文件中找到了文件副本,但是当前源代码不同。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆