这不是一个断点的有效位置 [英] This is not a valid location for a breakpoint

查看:908
本文介绍了这不是一个断点的有效位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图把一个断点下面提到的网页上我的ASP.Net MVC 2应用程序的.ascx或.aspx文件在Visual Studio 2010,但它不会让我,它表明:

I am trying to put a breakpoint on below mentioned page in my ASP.Net MVC 2 application's .ascx or .aspx files in Visual Studio 2010. But it won't let me, it shows:

这不是一个断点一个有效的位置的。

此前它做的工作。这是为什么?任何帮助是AP preciated。

Earlier it did work. Why is that? Any help is appreciated.

我的.ascx页面看起来是这样的:

My .ascx page looks like this:

修改1

的.cs文件它working.Not工作只的.aspx和.ascx文件

.cs files it's working.Not working only on .aspx and .ascx files

编辑2

的注释部分下面提到的链接无是给一个解决方案的issue.B'cos,我们不能只为debug.So的code基增加额外的code有没有什么方法,只是激活红色标记(调试标志)为我的视图的C#codeS就像提到的图像?

None of the below mentioned links of comment section are giving a solution for the issue.B'cos we cannot add additional code for the code base only for debug.So is there any method to just activate the red mark(debug mark) for my view's c# codes like mentioned on image?

修改3

它工作的JavaScript代码在同一个文件内,但不是为C#code.Any线索?

It's working for inside the javascript tags on same file but not for the c# code.Any Clue ?

修改4

上面提到的问题,我来了之后,安装 Windows Azure的SDK的.NET - 2012年10月

Above mentioned issue came after I installed Windows Azure SDK for .NET - October 2012

当我编译code它给华林消息如下图所示。

When I compile the code it gives Waring message like below.

推荐答案

显示语法高亮问题后通过的 @Keith 我通过我的文件从上到下,副诗句去了。然后,我已经找到了问题。

After showed the syntax highlighting issue by @Keith I went through my file top to bottom and vice-verse. Then I have found the issue.

有对我的项目的警告信息,因为我表现出对修改4 以上。

There was a warning message on my project as I showed on EDIT 4 above.

在我解决了这个问题,刹车点(调试)的问题也消失了。

After I solved that issue, Brake point (debug) issue also vanished.

有关,我是用下述链接。

For that I have used below mentioned Link.

<一个href="http://social.msdn.microsoft.com/Forums/en-US/windowsazuretroubleshooting/thread/0fac1f05-eb55-432f-80ac-6f15cde5b14b/"相对=nofollow> 无法加载文件或程序集msshrtmi ​​- 在Azure中部署的格式不正确

在今后我会写一步指导一个完整的步骤显示了如何摆脱过这个问题。

In future I will write a complete step by step guide to show how to get rid-off this issue.

感谢每一个谁给了我支持。

Thanks for every one who gave me a support.

这篇关于这不是一个断点的有效位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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