I'm still having this problem. Here's what I know:
If I change the names of the two aspxs(myaccount.aspx and default.aspx) I can set breakpoints successfully. If I change them back, the problem reappears.
If I remove the files from my project, and then add two new files with the same names, and paste in the original content, the problem persists. All around these tests I delete all the dlls and pdb files from the project directory, VsWebCache, and some other cached folder whose name I forget.
i thought maybe it was a name conflict, and maybe it is, but I noticed that my default.aspx is actually the 3rd default.aspx in the main web project, after the root default.aspx and WebModules/Accounts/Admin/default.aspx, and there's no problem debugging the first two...so why a problem with the 3rd.
I noticed this in webproj.csproj. All the 'dependentupon' are the same, but that seems correct, though counterintuitive. Help is appreciated.
Code:
<Files>
<Include>
<File
RelPath = "Default.aspx.cs"
DependentUpon = "Default.aspx"
SubType = "ASPXCodeBehind"
BuildAction = "Compile"
/>
<File
RelPath = "WebModules\Accounts\Admin\Default.aspx.cs"
DependentUpon = "Default.aspx"
SubType = "ASPXCodeBehind"
BuildAction = "Compile"
/>
<File
RelPath = "WebModules\Pools\Default.aspx.cs"
DependentUpon = "Default.aspx"
SubType = "ASPXCodeBehind"
BuildAction = "Compile"
/>
.
.
.