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:

"This is not a valid location for a breakpoint".

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

My .ascx page looks like this:

enter image description here

EDIT 1

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

EDIT 2

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?

EDIT 3

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

enter image description here

EDIT 4

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

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

enter image description here

Edit
Report