Can not create unknown type

Have a look at this post…

May be you are having a similar scenario… let know if it doesn’t help