Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# shanyou 1/11/2005 5:57 AM (edited 1/11/2005 6:11 AM)
I update database use exec upgradedb-0.5-0.5.1-mssql2000.sql,
broswer http://localhost/cuyahoga/Default.aspx
throw new Exception
[NullReferenceException:]
Cuyahoga.Modules.Articles.Articles.rptArticles_ItemDataBound(Object sender, RepeaterItemEventArgs e)
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e)
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem)
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource)
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e)
System.Web.UI.WebControls.Repeater.DataBind()
Cuyahoga.Modules.Articles.Articles.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain() +750
Exception happened at PageEngine.cs
protected override void OnInit(EventArgs e)
{

base.OnInit(e);
}
base.OnInit(e); throw exception
# martijnb 1/11/2005 9:56 AM
At what line did you get the exception?
One thing I can imagine is that you're using the .dll's from 0.5.1 but the ascx controls from 0.5. I added some hyperlinks in the 0.5.1 .ascx that the codebehind looks for.
Note that the module .ascx files are not in the Cuyahoga.Web project. They are just copied with a post-build VS.NET event so you can run the project from VS.NET and still have the module files in a separate project.
# martijnb 1/11/2005 3:00 PM (edited 1/11/2005 3:01 PM)
And it was a bug that occured when an article did not have a category :)

Attached is a fixed Articles.ascx.cs