What does this "is not static / cannot attach" error mean?

Thank you, this was my exact problem. Splendid answer.