Well I think there are diff. scenirio for this kind of error.I was getting same kind of error.
Cause of an error:
(I)If you add an existing .
vb or .cs file to a project that we might have copy from other places or has already in other folder to our web site porject.
(II) I deleted existing .
vb file that i copied from other folder and manualy created .
vb file with same name (at this point i there was no error) and now I copied code from other .
vb file(I mean public sub method with business logic) and got error.
So then i manully added pulic sub and business logic no error.
So i conclusion would be it is visual studio 2005 binding bug and it is not consistance.
I'll post more once i found it.