Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# krishnanrajah 1/21/2007 11:28 PM
I downloaded New template with flyout menu for Cuyahoga framework. After installation , i applied the template of some of the pages ... but those pages are throwing "Object reference not set to an instance of an object" error. Pls help. The stack trace for your reference

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
[NullReferenceException: Object reference not set to an instance of an object.]
Cuyahoga.Web.UI.PageEngine.LoadContent() +287
Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) +1204
System.Web.UI.Control.InitRecursive(Control namingContainer) +241
System.Web.UI.Page.ProcessRequestMain() +197


Martijn..this is all the stack trace i have ... pls let me what other information is required.

I followed all the instructions in the install.txt file. one more thing if i apply different template the same page , it works like a charm.

pls help


krishnan

# krishnanrajah 1/22/2007 12:37 AM (edited 1/22/2007 12:58 AM)
Here is some additional information that i found after i setup a debug project.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Line 36: {
Line 37: get { return this.CssStyleSheet.Attributes["href"]; }
Line 38: set { this.CssStyleSheet.Attributes.Add("href", this.Page.ResolveUrl(value)); }
Line 39: }
Line 40:



looks like this line is the problem,

set { this.CssStyleSheet.Attributes.Add("href", this.Page.ResolveUrl(value)); }

value=""/CMSDebug/Templates/AnotherRedFlyout/Css/Red.css"
this.CssStyleSheet holds a undefined value

can u pls help


thanks
krishnan
# martijnb 1/22/2007 9:21 AM
What Cuyahoga version are you using? It looks like you have a pre-1.0 version. The menu needs at least Cuyahoga 1.0 because the way stylesheet links are generated was changed with the 1.0 release. See also the 1.0 release notes for more info.
# krishnanrajah 1/23/2007 2:11 AM
oops my bad was using 0.9.0.. i upgraded to 1.0.1 and the menu works fine.
thanks for the quick responses.
# martijnb 1/23/2007 5:05 AM
No problem. Glad it worked!