This project is read-only.

contactus.aspx fails

Topics: ASP.NET 2.0
Nov 15, 2007 at 8:43 PM
Hi All: Just did a basic install of blogengine, and noticed in the settings that I couldn't get the mail config to work. When I test email settings, I receive "could not connect" no matter what combination of settings I try (server name, server IP, authentication, etc.)...I also don't see the a connection attempt in the mailserver's log.

BE is running on server 2000 sp4 with ASP.NET 2.0.50727 installed...everything else on BE works except for mail.

When I tried to send a test email as admin, I received this error:
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 97: if (User.Identity.IsAuthenticated)
Line 98: {
Line 99: lblStatus.Text = ex.InnerException.Message;
Line 100: }
Line 101:

Source File: e:\websites\mysite\contact.aspx.cs Line: 99

Stack Trace:

NullReferenceException: Object reference not set to an instance of an object.
contact.SendEmail() in e:\websites\mysite\contact.aspx.cs:99
contact.btnSend_Click(Object sender, EventArgs e) in e:\websites\mysite\contact.aspx.cs:65
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

If I instead sign out and try to send an anonymous message, I receive a graceful error like:

"This form does not work at the moment. Sorry for the inconvenience. "