"is inaccessible due to its protection level" error message

Have you used "public" when creating the class and the constructor method the class you are accessing?