Reputation: 23
I got an error while creating a user control to datatype in Umbraco?.The Error showing is
[InvalidCastException: Unable to cast object of type 'ASP.usercontrols_xmas_shopshortdesc_ascx' to type 'umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor'.]
Anybody know what is this error ?
Upvotes: 1
Views: 199
Reputation: 2454
download UComponent add-on & upload it to package. there you may create you own customized Data types with the help of this addon.
Upvotes: 0
Reputation: 10942
Your user control needs to implement 'umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor'.
See CREATING CUSTOM DATATYPES USING THE UMBRACO USERCONTROL WRAPPER for more details.
Upvotes: 1