Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / May 2006

Tip: Looking for answers? Try searching our database.

Staying on a page for awhile causes error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jonefer - 02 May 2006 21:51 GMT
I have a simple search utility that works perfectly except
if the user were to step away from her terminal after finding the results
for - 7 minutes or so, and try to go back to the main page
an error is generated:

(Any idea how to prevent this?)
Object reference not set to an instance of an object
[NullReferenceException: Object reference not set to an instance of an
object.]
  Membership.MemberDetail.ShowMember() +1166
  Membership.MemberDetail.Page_Load(Object sender, EventArgs e) +7
  System.Web.UI.Control.OnLoad(EventArgs e) +67
  System.Web.UI.Control.LoadRecursive() +35
  System.Web.UI.Page.ProcessRequestMain() +731
Greg Young - 02 May 2006 21:58 GMT
My guess would be without seeing your code in the

MemberDetail.ShowMember() method

that you are either accessing a Session or Cached variable which is no
longer present at the time of postback and not handling the case of it not
being there (i.e. returning null).

Cheers,

Greg

>I have a simple search utility that works perfectly except
> if the user were to step away from her terminal after finding the results
[quoted text clipped - 10 lines]
>   System.Web.UI.Control.LoadRecursive() +35
>   System.Web.UI.Page.ProcessRequestMain() +731

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.