I am using Telerik RadControls. I have radGrid in which i have upload
control for inserting images. But error is thrown when I try to upload
any file.
Object must implement IConvertible.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Object must implement IConvertible.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Object must implement IConvertible.]
System.Convert.ChangeType(Object value, TypeCode typeCode,
IFormatProvider provider) +2877013
System.Web.UI.WebControls.Parameter.GetValue(Object value, String
defaultValue, TypeCode type, Boolean
convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +141
System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean
ignoreNullableTypeChanges) +63
System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand
command, ParameterCollection
reference, IDictionary parameters, IDictionary exclusionList, String
oldValuesParameterFormatString) +524
System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary
keys, IDictionary values, IDictionary oldValues) +141
System.Web.UI.DataSourceView.Update(IDictionary
keys, IDictionary values, IDictionary oldValues,
DataSourceViewOperationCallback callback) +92
Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem,
Boolean suppressRebind) +224
Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
+985 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
+134 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs
args) +37 Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source,
EventArgs e) +216 System.Web.UI.Control.RaiseBubbleEvent(Object
source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String
eventArgument) +176
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +1565
I am actually trying to use this example with my databases and all.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultvb.aspx?product=grid&RadUrid=2ecccfe5-76bd-4310-b0a3-c5c84afc1beb