Note that there are some explanatory texts on larger screens.

plurals
  1. POElmah does not send emails on errors running on windows azure websites
    primarykey
    data
    text
    <p>When I publish my site to windows azure, ELMAH does not send emails and throws the error below. Any help or ideas appreciated. Thank You!</p> <p><strong>Note:</strong></p> <p>I have elmah setup properly to send emails via smtp on hostmysite.com which does IIS/.NET hosting outside of Azure. I also have a staging server at home that works well. Also, I have tried port 25,50, 587. Also, I have tried sending to a list server I pay for and also SendGrid. In each case, it works on my staging and development server but not in Azure.</p> <p>ELMAH is capturing errors in the database (MS SQL and IIS in Azure).</p> <p>Here are my config settings:</p> <pre><code>System.Net.NetworkInformation.NetworkInformationExceptionAccess is denied System.Net.NetworkInformation.NetworkInformationException (0x80004005): Access is denied at System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_HostName() **at System.Net.Mail.SmtpClient.Initialize() at System.Net.Mail.SmtpClient..ctor() at Elmah.ErrorMailModule.SendMail(MailMessage mail) at Elmah.ErrorMailModule.ReportError(Error error)** at Elmah.ErrorSignalEventHandler.Invoke(Object sender, ErrorSignalEventArgs args) at Elmah.Mvc.HandleErrorAttribute.OnException(ExceptionContext context) at System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass25.&lt;BeginInvokeAction&gt;b__22(IAsyncResult asyncResult) at System.Web.Mvc.Controller.&lt;&gt;c__DisplayClass1d.&lt;BeginExecuteCore&gt;b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) at System.Web.Mvc.MvcHandler.&lt;&gt;c__DisplayClass8.&lt;BeginProcessRequest&gt;b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.&lt;&gt;c__DisplayClass4.&lt;MakeVoidDelegate&gt;b__3(IAsyncResult ar) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) &lt;httpModules&gt; &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /&gt; &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" /&gt; ... &lt;/httpModules&gt; &lt;modules&gt; &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" /&gt; &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /&gt; ... &lt;/modules&gt; &lt;elmah&gt; &lt;security allowRemoteAccess="yes" /&gt; &lt;errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="Elmah.Sql" /&gt; **&lt;errorMail from="errors@domain.com" to="ErrorReport@mydomain.com" subject="[Site][ErrorReport-ELMAH]" async="false" smtpPort="587" smtpServer="stmp.server.com" useSsl="false" userName="user1" password="password1" noYsod="false" /&gt;** &lt;/elmah&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload