An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Code:
|
Thanks for the heads up. I fixed the issue and all should be working now. Please let me know if you have any further issues.Server Error in '/' Application.
Object cannot be cast from DBNull to other types.
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: Object cannot be cast from DBNull to other types.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +48
System.Convert.ToInt32(Object value) +36
AspNetForums.Data.SqlDataProvider.PopulateThreadFromSqlDataReader(SqlDataReader reader) +560
AspNetForums.Data.SqlDataProvider.GetAllThreads(Int32 forumID, Int32 pageSize, Int32 pageIndex, DateTime endDate, String username, Boolean unreadThreadsOnly) +657
AspNetForums.Threads.GetAllThreads(Int32 forumID, Int32 pageSize, Int32 pageIndex, DateTime endDate, String username, Boolean unreadThreadsOnly) +483
AspNetForums.Controls.ThreadView.OnPreRender(EventArgs e) +390
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499
Thanks Geoffrey! it all seems good now.Thanks for the heads up. I fixed the issue and all should be working now. Please let me know if you have any further issues.
Geoffrey
In the recent thread about fixing a freind 873, I had this error when i click on the "next" link at the bottom of the page to open the 2nd page of posts.Thanks Geoffrey! it all seems good now.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Code:
|
Ken, just checked it out and I did not get the error message. Did you post something and then click to the next screen? Let me play with it and see if I can break it...In the recent thread about fixing a freind 873, I had this error when i click on the "next" link at the bottom of the page to open the 2nd page of posts.
Ken
Server Error in '/' Application.
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +0
AspNetForums.Controls.Paging.PrevNext_Click(Object sender, EventArgs e) +57
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +108
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
No I had just read the 1st page of threads and was trying to open the second if I recall correctly. Sorry its been a while, I've been swamped lately.Ken, just checked it out and I did not get the error message. Did you post something and then click to the next screen? Let me play with it and see if I can break it...
Thanks