user2264616
user2264616

Reputation: 23

Umbraco datatype creating Error

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

Answers (2)

Ankit Agrawal
Ankit Agrawal

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

Douglas Ludlow
Douglas Ludlow

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

Related Questions