User-1832071357 posted
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