Hi,
Iv tried the Guestbook tutorial, but it comes up with a Error where it fails to convert DataTime to String, when adding a new message. Problem is i cant see where even when i debug step by step. Any idears?
Cannot convert value of parameter 'DateEntered' from 'System.String' to 'System.DateTime'
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.InvalidOperationException: Cannot convert value of parameter 'DateEntered' from 'System.String' to 'System.DateTime'
Source Error:
[No relevant source lines] [No relevant source lines] |
Source File: Exceptions.vb Line: 221
Stack Trace:
[InvalidOperationException: Cannot convert value of parameter 'DateEntered' from 'System.String' to 'System.DateTime'] System.Web.UI.WebControls.ObjectDataSourceView.ConvertType(Object value, Type type, String paramName) +352 System.Web.UI.WebControls.ObjectDataSourceView.BuildObjectValue(Object value, Type destinationType, String paramName) +169 System.Web.UI.WebControls.ObjectDataSourceView.BuildDataObject(Type dataObjectType, IDictionary inputParameters) +223 System.Web.UI.WebControls.ObjectDataSourceView.ExecuteInsert(IDictionary values) +270 System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +72 System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation) +388 System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +623 System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e) +95 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e) +109 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 [PageLoadException: Cannot convert value of parameter 'DateEntered' from 'System.String' to 'System.DateTime'] DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) in Exceptions.vb:221 DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) in PageBase.vb:538 System.Web.UI.TemplateControl.OnError(EventArgs e) +105 System.Web.UI.Page.HandleError(Exception e) +73 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6944 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154 System.Web.UI.Page.ProcessRequest() +86 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) +29 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64