Another error, deep in the artical archive for those of us who are extreamly board and feel like subjecting ourselfs to ryan's special form of wit (or as close as he can get)
the KOTOR artical (May have roots somewere else in the system)
Server Error in '/' Application.
Conversion from type 'DBNull' to type 'Integer' 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 'Integer' is not valid.
Source Error:
Line 41:
Line 42: Me.littitle.Text = objarticle.Title
Line 43: Me.litauthor.Text = "<a href='/cs/user/Profile.aspx?UserID=" & objarticle.AuthorID & "'>" & objarticle.Author & "</a>"
Line 44: Me.litpostdate.Text = FormatDateTime(objarticle.DisplayDate, DateFormat.ShortDate)
Line 45: Me.litsplashtext.Text = objpage.Intro |
Source File: C:\data\websites\WCN\dndorks.com\viewarticle.aspx.vb Line: 43
Stack Trace:
[InvalidCastException: Conversion from type 'DBNull' to type 'Integer' is not valid.]
Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(Object Value) +953
webcomiccode.ArticleRow.get_AuthorID() in F:\Recent Projects\dndorks\webcomiccode\Datasets\DSGeneric.Designer.vb:3260
[StrongTypingException: The value for column 'AuthorID' in table 'Article' is DBNull.]
webcomiccode.ArticleRow.get_AuthorID() in F:\Recent Projects\dndorks\webcomiccode\Datasets\DSGeneric.Designer.vb:3262
viewarticle.Preparepage() in C:\data\websites\WCN\dndorks.com\viewarticle.aspx.vb:43
viewarticle.Page_Load(Object sender, EventArgs e) in C:\data\websites\WCN\dndorks.com\viewarticle.aspx.vb:24
System.EventHandler.Invoke(Object sender, EventArgs e) +0
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.3053; ASP.NET Version:2.0.50727.3053