I have struggled for years with this problem. Today I finally
found a solution that seems to work everytime. Brilliant. So happy
I have to share it here, mainly in case I lose it :)
It came from here:
http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/4f7b3eb5-67b5-4066-8299-fe7635cc1d82
For cracking this issue asp.net, do the following steps
1) stop www services
2) delete all the cache from
C:\windows\microsoft.net\framework\v2.0.50727\Temporary ASP.NET
Files
3) delete all the PDB and Dll file which in bin & obj
directory of asp.net project
4) start the service and compile the project.
It will work.
Thanks, Suresh M :)