Upgrades Questions on upgrading to version 6.x.
Version 6.x > Upgrades >  Unable to cast object of type 'ASP.cmsformcontrols_basic_dropdownlistcontrol_ascx View modes: 
User avatar
Member
Member
mike.shakerbadr-djj - 7/22/2013 3:41:10 PM
   
Unable to cast object of type 'ASP.cmsformcontrols_basic_dropdownlistcontrol_ascx
after we upgrade to kentico 6. when submitting the bizform we getting this error.

An error occurred when saving data: Unable to cast object of type 'ASP.cmsformcontrols_basic_dropdownlistcontrol_ascx' to type 'System.Web.UI.WebControls.DropDownList'.


string location = ((System.Web.UI.WebControls.DropDownList)viewBiz.BasicForm.FieldControls["Location"]).SelectedValue;

User avatar
Member
Member
kentico_sandroj - 7/22/2013 5:19:02 PM
   
RE: Unable to cast object of type 'ASP.cmsformcontrols_basic_dropdownlistcontrol_ascx
Hello,

If you are using custom form control this is likely caused by the API differences between the two versions. Please take a look at the linked post and let us know if you have any questions.

Regards,
Sandro