Server Error in '/' Application.

Conversion from string "/2/2014 1:42:41 PM" to type 'Date' is not valid.

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: Conversion from string "/2/2014 1:42:41 PM" to type 'Date' is not valid.

Source Error:


Line 302:        Dim dvSql As DataView = DirectCast(DataDL.Select(DataSourceSelectArguments.Empty), DataView)
Line 303:        For Each drvSql As DataRowView In dvSql
Line 304:            Str_HT = "<p style=""font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal;"">" & TimThu_Ngay(Weekday(drvSql("ngay"))) & ", ngày " & Format(DateValue(drvSql("Ngay")), "dd/MM/yyyy") & "  " & Format(TimeValue(drvSql("ngay").ToString), "hh:mm:ss") & " GMT+7 | lượt xem: " & drvSql("luotxem").ToString & " </p>"
Line 305:            Str_HT = Str_HT & "<p class=""St_Tieude"">" & drvSql("Tuade").ToString.Trim & "</p>"
Line 306:            Str_HT = Str_HT & "<p class=""St_Noidung_Intro"">" & drvSql("Intro").ToString.Trim() & "</p>"

Source File: D:\wwwroot\TVLD_3\news_view.aspx.vb    Line: 304

Stack Trace:


[InvalidCastException: Conversion from string "/2/2014 1:42:41 PM" to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +154
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(Object Value) +162
   page.HT(String ID, String& Chuyenmuc, String& Tacgia) in D:\wwwroot\TVLD_3\news_view.aspx.vb:304
   page.Page_Load(Object sender, EventArgs e) in D:\wwwroot\TVLD_3\news_view.aspx.vb:453
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974