I had this same problem only to realize that VS, when creating the file, added the modifier internal to the class. Changing it to public fixed it.