E-mailhttp://forums.asp.net/t/1495508.aspx/1?E+mailThu, 10 Dec 2009 05:49:45 -050014955083524966http://forums.asp.net/p/1495508/3524966.aspx/1?E+mailE-mail <p>Server Error in '/' Application.<br> --------------------------------------------------------------------------------</p> <p>Object reference not set to an instance of an object. <br> 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. </p> <p>Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.</p> <p>Source Error: </p> <p><br> Line 162:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each str As String In usernames<br> Line 163:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mem = Membership.GetUser(str)<br> Line 164:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim gui As New Guid(mem.ProviderUserKey.ToString)<br> Line 165:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim name As String = GetName(gui)<br> Line 166:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim address As New MailAddress(mem.Email, name)<br> &nbsp;</p> <p>Source File:x:\HostingSpaces\XXXXXXXXXXX.com\XXXXXXXXXX.net\wwwroot\admin\Email.aspx.vb&nbsp;&nbsp;&nbsp; Line: 164 </p> <p>Stack Trace: </p> <p><br> [NullReferenceException: Object reference not set to an instance of an object.]<br> &nbsp;&nbsp; Admin_Email.GetRecipients() in x:\HostingSpaces\XXXXXXX.com\XXXXXXXXXX.net\wwwroot\admin\Email.aspx.vb:164<br> &nbsp;&nbsp; Admin_Email.btnSend_Click(Object sender, EventArgs e) in e:\HostingSpaces\XXXXXXX.com\XXXXXXXs.net\wwwroot\admin\Email.aspx.vb:50<br> &nbsp;&nbsp; System.Web.UI.WebControls.Button.OnClick(EventArgs e) &#43;111<br> &nbsp;&nbsp; System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) &#43;110<br> &nbsp;&nbsp; System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) &#43;10<br> &nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) &#43;13<br> &nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) &#43;36<br> &nbsp;&nbsp; System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &#43;1565</p> <p><span style="font-family:Arial; font-size:x-small"><span style="font-family:Arial; font-size:x-small"></p> <p></p> <p>What does this mean?</p> <p>How can I&nbsp;fix this?</p> <p></p> <p>LHR</p> </span></span> <p></p> <p></p> <p></p> <p>&nbsp;</p> <p>&nbsp;</p> 2009-11-20T22:28:22-05:003557622http://forums.asp.net/p/1495508/3557622.aspx/1?Re+E+mailRe: E-mail <p><font size="2"><span lang="EN"></p> <p>I thought I had it fixed.</p> <p>LHR</p> </span></font> <p></p> 2009-12-10T05:49:45-05:00