Server Error in '/' Application.
--------------------------------------------------------------------------------
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 162: For Each str As String In usernames
Line 163: mem = Membership.GetUser(str)
Line 164: Dim gui As New Guid(mem.ProviderUserKey.ToString)
Line 165: Dim name As String = GetName(gui)
Line 166: Dim address As New MailAddress(mem.Email, name)
lhr
Member
27 Points
52 Posts
E-mail
Nov 20, 2009 10:28 PM|LINK
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 162: For Each str As String In usernames
Line 163: mem = Membership.GetUser(str)
Line 164: Dim gui As New Guid(mem.ProviderUserKey.ToString)
Line 165: Dim name As String = GetName(gui)
Line 166: Dim address As New MailAddress(mem.Email, name)
Source File:x:\HostingSpaces\XXXXXXXXXXX.com\XXXXXXXXXX.net\wwwroot\admin\Email.aspx.vb Line: 164
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Admin_Email.GetRecipients() in x:\HostingSpaces\XXXXXXX.com\XXXXXXXXXX.net\wwwroot\admin\Email.aspx.vb:164
Admin_Email.btnSend_Click(Object sender, EventArgs e) in e:\HostingSpaces\XXXXXXX.com\XXXXXXXs.net\wwwroot\admin\Email.aspx.vb:50
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
What does this mean?
How can I fix this?
LHR
lhr
Member
27 Points
52 Posts
Re: E-mail
Dec 10, 2009 05:49 AM|LINK
I thought I had it fixed.
LHR