Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 45: _memberid = New Guid(member_id.ToString())
Line 46: Dim memUser As MembershipUser = Membership.GetUser(_memberid)
Line 47: _joined = memUser.CreationDate
Line 48: _online = memUser.IsOnline
Line 49: _email = memUser.Email
That's what I thought but the user is me. The only thing I did was upload a new avitar. I deleted the post and made a new one and it works. Leads me to think that may somehow be connected by the date.
Look at the _joined delcaration. Does it have a DateTime type? I found out something didn't have the correct type this morning when I was converting to C#.
Zack Owens
Coordinator for the ClubStarterKit (Open Source)
http://codeplex.com/clubstarterkit
gwtech
Member
4 Points
18 Posts
Trying to Read first Post in Forum. Error: Line 47: _joined = memUser.CreationDate
Jul 27, 2007 05:32 PM|LINK
New Error. Anyone getting this?
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Source File: D:\vhosts\catahouligans.com\httpdocs\ClubSite\App_Code\ForumUser.vb Line: 47
zowens
Member
693 Points
243 Posts
Re: Trying to Read first Post in Forum. Error: Line 47: _joined = memUser.CreationDat...
Jul 27, 2007 07:05 PM|LINK
First, you need to check and see if the user is still in the database. If not, then the error would make sence.
If the user is in the database, check to see that the CreationDate is valid for that member.
Coordinator for the ClubStarterKit (Open Source)
http://codeplex.com/clubstarterkit
gwtech
Member
4 Points
18 Posts
Re: Trying to Read first Post in Forum. Error: Line 47: _joined = memUser.CreationDat...
Jul 27, 2007 07:58 PM|LINK
That's what I thought but the user is me. The only thing I did was upload a new avitar. I deleted the post and made a new one and it works. Leads me to think that may somehow be connected by the date.
Your thoughts,
Greg
zowens
Member
693 Points
243 Posts
Re: Trying to Read first Post in Forum. Error: Line 47: _joined = memUser.CreationDat...
Jul 27, 2007 09:04 PM|LINK
Are you logged in?
Look at the _joined delcaration. Does it have a DateTime type? I found out something didn't have the correct type this morning when I was converting to C#.
Coordinator for the ClubStarterKit (Open Source)
http://codeplex.com/clubstarterkit
gwtech
Member
4 Points
18 Posts
Re: Trying to Read first Post in Forum. Error: Line 47: _joined = memUser.CreationDat...
Jul 29, 2007 02:14 AM|LINK
I'll look into that.
Thanks,
Greg