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 10963:            Get
Line 10964:                Try 
Line 10965:                    Return CType(Me(Me.tableProducts.ContentDEColumn),String)
Line 10966:                Catch e As Global.System.InvalidCastException
Line 10967:                    Throw New Global.System.Data.StrongTypingException("The value for column 'ContentDE' in table 'Products' is DBNull.", e)

Source File: D:\vhosts\ozgursistem.com.tr\tmp\root\8ba7024a\71acdb44\App_Code.hfmyloe6.12.vb    Line: 10965

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value) +452708
   ProductsRow.get_ContentDE() in D:\vhosts\ozgursistem.com.tr\tmp\root\8ba7024a\71acdb44\App_Code.hfmyloe6.12.vb:10965

[StrongTypingException: The value for column 'ContentDE' in table 'Products' is DBNull.]
   ProductsRow.get_ContentDE() in D:\vhosts\ozgursistem.com.tr\tmp\root\8ba7024a\71acdb44\App_Code.hfmyloe6.12.vb:10967
   ProductDetails.Page_Load(Object sender, EventArgs e) in D:\vhosts\ozgursistem.com.tr\httpdocs\ProductDetails.aspx.vb:383
   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.9061; ASP.NET Version:2.0.50727.9062