locked
BHM Notification Email error on scheduled run RRS feed

  • Question

  • I'm encountering following error when BHM v3 is trying to send email after running a report or when errors occur, mail settings are working fine with test email button i'm getting a test email to my account so that verifies that the email settings are working.

    I'm using custom configuration in BHM settings to suit the environment, is there any configuration that i'm missing any pre requisites that are re required for this functionality to work

    ERROR ! : ERROR SENDING MAIL : SYSTEM.NET.MAIL.SMTPEXCEPTION: FAILURE SENDING MAIL. ---> SYSTEM.NULLREFERENCEEXCEPTION: OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT.

       AT SYSTEM.NET.MAIL.SMTPCONNECTION.GETCONNECTION(STRING HOST, INT32 PORT)

       AT SYSTEM.NET.MAIL.SMTPCLIENT.SEND(MAILMESSAGE MESSAGE)

       --- END OF INNER EXCEPTION STACK TRACE ---

       AT SYSTEM.NET.MAIL.SMTPCLIENT.SEND(MAILMESSAGE MESSAGE)

       AT MYHEALTHCHECK.CMYHCFRAMEWORK.SENDMAIL(STRING REPORTSFOLDER)


    -@btsdude -- If this post answers you please mark accordingly.

    Thursday, June 18, 2015 1:34 PM

Answers

  • Thanks for all the help got this fixed - indeed this is something related to tool's interpretation of user principal, there was a conflict with configured user in the tool as well as logged in windows user, so in order for the email functionality to work I have to be logged in as the user that we configure in the BHM email alerts and then configure it to run which was successful !!!.

    Solution - Login as same user that you are going to configure in email alerts and scheduler then configure BHM it will work fine.


    -@btsdude -- If this post answers you please mark accordingly.


    • Marked as answer by btsdude Thursday, June 25, 2015 2:39 PM
    • Edited by btsdude Thursday, June 25, 2015 2:39 PM
    Thursday, June 25, 2015 2:39 PM

All replies

  • Hi,

    Object reference not set to instance  of object is very generic error . Is there any additional information logged into event log .

    Thanks

    Abhishek

    Friday, June 19, 2015 5:03 AM
  • BHM ? Is this a custom SMTP adapter for BizTalk? Is this related to BizTalk in any way?

    That having said, NULL Reference @GetConnection(string host, int port) implies that you're missing the configuration of your SMTP server (host and/or port) and the BHM client is not able to establish the connection.

    Regards.

    Friday, June 19, 2015 5:46 AM
  • Hi Shanky,

    Its Biztalk Health Monitoring tool (BHM ) which is being shipped with BizTalk 2013 and R2 for BizTalk  environment health Monitoring :) . I think you have missed it :) mate

    https://www.microsoft.com/en-in/download/details.aspx?id=43716

    Thanks

    Abhishek

    Friday, June 19, 2015 6:01 AM
  • Thanks for that, I did miss it indeed.

    Regards.

    Friday, June 19, 2015 6:40 AM
  • Thanks for your replies

    @shanky

    I'm not sure if that's the case because I verified that the SMTP server settings are correct and server is reachable in fact the test email functionality in the BHM tool is working fine i'm receiving an email from the tool but BHM is failing to email the reports when we run it, reports are being generated fine and i'm able to see them in the folder location and in the tool too.

    @abhishek

    its a generic error with out any configuration specific info to troubleshoot so i came to the forums wondering if any one came across this

     

    anyways here is the log it shows that its generating files successfully but fails to send an email

    10:12:30.7546264     GENERATING HTML TOPOLOGY REPORT...

    10:12:30.8168708     PREPARING THE TOPOLOGY DIAGRAM...

    10:12:30.8168708     RENDERING THE SERVER NAMES ROW..

    10:12:30.8168708     RENDERING THE SERVERS TYPES ROW..

    10:12:30.8168708     RENDERING THE SERVER IMG ROW..

    10:12:30.8168708     RENDERING THE CONNECTORS ROW..

    10:12:30.8168708     RENDERING THE NETWORK ROW..

    10:12:30.8168708     RENDERING THE SERVERS NAMES (SECOND LINE)..

    10:12:30.8168708     RENDERING THE SERVERS IMG (SECOND LINE)..

    10:12:30.8168708     RENDERING THE SERVER NAMES ROW (SECOND LINE)...

    10:12:30.8168708     RENDERING THE SERVER TYPES ROW (BELOW NETWORK)...

    10:12:30.8946763     GENERATING HTML QUERY REPORT "SOURCE SERVERS"

    10:12:30.8946763     GENERATING HTML QUERY REPORT "DESTINATION SERVERS"

    10:12:30.9102374     GENERATING HTML SUMMARY REPORT...

    10:12:30.9257985     GENERATING HTML CRITICAL WARNING SUB REPORT...

    10:12:30.9413596     GENERATING HTML NON CRITICAL WARNING SUB REPORT...

    10:12:30.9413596     GENERATING HTML SUMMARY REPORT...

    10:12:30.9569207     GENERATING HTML MAIL REPORT...

    10:12:30.9569207     GENERATING HTML CRITICAL WARNING SUB REPORT...

    10:12:30.9724818     GENERATING HTML NON CRITICAL WARNING SUB REPORT...

    10:12:30.9724818     GENERATING XML SUMMARY REPORTS...

    10:12:30.9724818     GENERATING XML CRITICAL WARNING SUB REPORT...

    10:12:30.9724818     GENERATING XML NON CRITICAL WARNING SUB REPORT...

    10:12:30.9880429     GENERATING XML SUMMARY REPORT...

    10:12:30.9880429     GENERATING HTML KEY INDICATORS REPORT...

    10:12:31.0036040     GENERATING HTML KEY INDICATORS REPORT...

    10:12:31.0036040     GENERATING XML DASHBOARD REPORT...

    10:12:31.0502873     SENDING BY MAIL DASHBOARD AND WARNINGS REPORTS

    10:12:31.1125317     COMPRESSING THE FINAL REPORT

    10:12:32.2640531   ERROR ! : ERROR SENDING MAIL : SYSTEM.NET.MAIL.SMTPEXCEPTION: FAILURE SENDING MAIL. ---> SYSTEM.NULLREFERENCEEXCEPTION: OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT.

       AT SYSTEM.NET.MAIL.SMTPCONNECTION.GETCONNECTION(STRING HOST, INT32 PORT)

       AT SYSTEM.NET.MAIL.SMTPCLIENT.SEND(MAILMESSAGE MESSAGE)

       --- END OF INNER EXCEPTION STACK TRACE ---

       AT SYSTEM.NET.MAIL.SMTPCLIENT.SEND(MAILMESSAGE MESSAGE)

       AT MYHEALTHCHECK.CMYHCFRAMEWORK.SENDMAIL(STRING REPORTSFOLDER)

    10:12:32.2796142 ************************************************************************************************************************************

    10:12:32.2796142 Output Files Generated :

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C0_Important.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C0_Important.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C1_ServersDetails.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C1_ServersDetails.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C2_BTDBsDetails.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C2_BTDBsDetails.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C4_SQL.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReport_C4_SQL.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputQueriesReportIndex.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputHeaderReport.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputHeaderReport.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputTopologyReport.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputTopologyReport.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputWarningsReport.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputWarningsReport.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputSummaryReport.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputSummaryReport.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputWarningsMail.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputDashboardReport.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputDashboardReport.xml

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputDashboardMail.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputMainIndex.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\MBVOutputMAINPAGE.html

    10:12:32.2796142 C:\temp\BHM LOG\MBVOutput_2015-06-19_10-12-05_NTTTEST\Status.txt


    -@btsdude -- If this post answers you please mark accordingly.


    • Edited by btsdude Friday, June 19, 2015 2:21 PM added log content
    Friday, June 19, 2015 2:17 PM
  • Hi ,

    I would suggest to log a support case with MS as its a new enhancement made with BizTalk product .

    https://support.microsoft.com/en-us

    Thanks

    Abhishek

    Friday, June 19, 2015 4:32 PM
  • Thanks for all the help got this fixed - indeed this is something related to tool's interpretation of user principal, there was a conflict with configured user in the tool as well as logged in windows user, so in order for the email functionality to work I have to be logged in as the user that we configure in the BHM email alerts and then configure it to run which was successful !!!.

    Solution - Login as same user that you are going to configure in email alerts and scheduler then configure BHM it will work fine.


    -@btsdude -- If this post answers you please mark accordingly.


    • Marked as answer by btsdude Thursday, June 25, 2015 2:39 PM
    • Edited by btsdude Thursday, June 25, 2015 2:39 PM
    Thursday, June 25, 2015 2:39 PM