Server Error in '/' Application.

Conversion from type 'DBNull' to type 'String' 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 type 'DBNull' to type 'String' is not valid.

Source Error:


Line 6643: Get Line 6644: Try Line 6645: Return CType(Me(Me.tableNews_tbl.NewstitleColumn),String) Line 6646: Catch e As Global.System.InvalidCastException Line 6647: Throw New Global.System.Data.StrongTypingException("The value for column 'Newstitle' in table 'News_tbl' is DBNull.", e)

Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba26479d\9b425eec\App_Code.kq4oetjh.2.vb    Line: 6645

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.] Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +1307492 News_tblRow.get_Newstitle() in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba26479d\9b425eec\App_Code.kq4oetjh.2.vb:6645 [StrongTypingException: The value for column 'Newstitle' in table 'News_tbl' is DBNull.] News_tblRow.get_Newstitle() in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ba26479d\9b425eec\App_Code.kq4oetjh.2.vb:6647 readnews.Page_Load(Object sender, EventArgs e) in e:\HostingSpaces\bayader\al-bayader.com\wwwroot\readnews.aspx.vb:13 System.Web.UI.Control.OnLoad(EventArgs e) +97 System.Web.UI.Control.LoadRecursive() +61 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0