I have a simular error in my current project unfortunately.
So i've been looking for a solution aswell.
What I found out about this is that it is usually caused by calling a class as a type,
but the class isn't public or accessible to the line you are calling it to.
If that doesn't fix it, you're in for a long search.
Good luck!
I'll be checking back here to see if anyone found out what this error indicates exactly.