p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio (http://p2p.wrox.com/forumdisplay.php?f=477)
-   -   NullReferenceException in chapter six (http://p2p.wrox.com/showthread.php?t=78263)

kaycey February 19th, 2010 04:45 AM

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:

public virtual void CheckCapabilities()
and highlights the following line of 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!!!!!!!!

All times are GMT -4. The time now is 01:31 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.