System.Exception: Server could not create

Recently I was working on ControlAdapters and came across a strange error,-

System.Exception: Server could not create <classname>

Upon subequent research I figured out that this error will occur when the class is inaccessible. You need explicitly specify the public access modifier while declaring the class.