View Single Post
  #1 (permalink)  
Old February 19th, 2010, 04:45 AM
kaycey kaycey is offline
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default NullReferenceException in chapter six

Each time I tried running one of the pages in the administration folder it gives me an execption and refers me to this section of the base page class:
Code:
public virtual void CheckCapabilities()
and highlights the following line of code:
Code:
switch (CurrentUser.GetCapabilityAccess(capability.ID, Globals.GetRoles(this.Cache)))
I noticed that "CurrentUser" returns a null value when it was actually declared as a readonly property. I dont know what to do at this point. Please I need a quick aid because I've been on this for almost a week and it is driving me nuts because I cant advance to the next chapter without clearing this error off the project. PLS HELP!!!!!!!!