Hi Jon
Do you have multiple projects in your solution, and, if so, do one or more
projects reference any of the other projects?
The problem you describe can occur when you reference other projects in your
solution by browsing to the project's output dll, rather than selecting from
the Projects tab in the Add Reference dialogue.
I used to get this problem frequently until I changed my method of
referencing other projects (on the suggestion of Microsoft tech support). I
haven't had the problem once since.
One other thing to add: check that you don't have a circular reference. The
IDE prevents direct, one-to-one circular references, but it is possible for
project A to reference B, B to reference C, and C to reference A. Apart from
being bad coupling, this can also through VS into a spin.
HTH
Charles
"Jon" <Jo*@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
I am constantly getting reports in my task list like these:
* 'someObjectName" is not a member of 'someOtherObjectName'
* Handles clause requires a WithEvents variable.
* Name 'someName' is not declared
These errors are totally erroneous. If I go into the class and cut the
offending code and repaste it in the same spot the errors temporarily go
away. Also, more effective is to delete the files in project/bin and
rebuild. Both fixes work temporarily.
When these errors aren't displayed, the project builds find and runs fine,
but when the errors are being displayed, it won't build.
Please somebody post an answer. This has been a frequent hassle and I
have
searched extensively for answers without luck.
Thank You,
Jon