Windows 2012 Essentials Health Report won't send - HTML format issue
-
Tuesday, February 12, 2013 1:54 PM
I have a new Windows Server 2012 Essentials server, and have installed the Windows 2012 Essentials Health Report addin. The reports run fine, but fail to send by email. The console reports "SMTP Server cannot perform the operation".
Investigating the HealthReportProvider.log gives the following:
[14656] 130212.130510.2423: HealthReport: Job 747238b9-7bbf-4437-bec1-350aef736686 is being executed [14656] 130212.130510.2493: HealthReport: Exception during loading the xml document: System.Xml.XmlException: The 'partition-dn' start tag on line 42 position 17942 does not match the end tag of 'div'. Line 42, position 17959. at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) at System.Xml.XmlTextReaderImpl.ParseEndElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.WindowsServerSolutions.HealthReport.ReportEmail.SmtpClientManager.ComposeMailMessage(MailMessage message, String htmlBody, IDictionary`2& imageStreams) [14656] 130212.130510.2503: HealthReport: SendAsync Failed. Error=System.InvalidOperationException: Html report is in bad format. ---> System.Xml.XmlException: The 'partition-dn' start tag on line 42 position 17942 does not match the end tag of 'div'. Line 42, position 17959. at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag) at System.Xml.XmlTextReaderImpl.ParseEndElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at Microsoft.WindowsServerSolutions.HealthReport.ReportEmail.SmtpClientManager.ComposeMailMessage(MailMessage message, String htmlBody, IDictionary`2& imageStreams) --- End of inner exception stack trace --- at Microsoft.WindowsServerSolutions.HealthReport.ReportEmail.SmtpClientManager.ComposeMailMessage(MailMessage message, String htmlBody, IDictionary`2& imageStreams) at Microsoft.WindowsServerSolutions.HealthReport.ReportEmail.SmtpClientManager.sendEmailAsync(Guid reportId, SmtpClientSettings settings) [4380] 130212.130510.2513: HealthReport: Sending email failed due to: System.Exception: Exception of type 'System.Exception' was thrown. [4380] 130212.130510.2633: HealthReport: Return code is: SmtpOperationFailed [4380] 130212.130510.2913: HealthReport: Job 747238b9-7bbf-4437-bec1-350aef736686 is finished
Which seems to be saying the SMTP Client is rejecting the health report because it's not formatted correctly. If I exclude the event logs from being included, the email sends fine - I'm guessing there's maybe some characters in one of my events which aren't being escaped properly, however I've cleared the event log and the problem persists.
A copy of a report that won't send, and both the HealthReportProvider and HealthReport log files are available here: hxxp://bluecompute.co.uk/HealthReport.zip
All Replies
-
Wednesday, February 13, 2013 8:46 PMHang loose, asking if I should bug this.
-
Thursday, February 14, 2013 11:11 AM
Cheers Susan, smells an awful lot like a bug to me.
-
Thursday, February 14, 2013 10:39 PMWhat's the companyname on this client? (hint is there a & in there?)
-
Friday, February 15, 2013 6:41 AMYou want to edit this key:
HKLM:\Software\Microsoft\Windows NT\CurrentVersion -
Registered Organization -
Friday, February 15, 2013 7:58 AMModerator
If you do find an & (or other non alpha numeric character) edit it out, and reset the Windows Server, Services.
Reload the Dashboard and try your email again.
Robert Pearman SBS MVP
itauthority.co.uk |
Title(Required)
Facebook |
Twitter |
Linked in |
Google+
- Edited by RobertPearmanMVP, Moderator Friday, February 15, 2013 8:03 AM
-
Friday, February 15, 2013 9:47 AMModerator
It does sound like your issue is slightly different to this.
If this does not fix it, can you download ProcessMonitor.
Run ProcessMonitor whilst generating a report - then as soon as that is finished, tell ProcessMonitor to stop collecting results (otherwise you will be buried under the output)
Then we can start filtering the output to only show us relevant info.
From this we may be able to find the config file, and then from that work out why it is failing.
(may be quicker than waiting for a bug fix)
Robert Pearman SBS MVP
itauthority.co.uk |
Title(Required)
Facebook |
Twitter |
Linked in |
Google+
-
Friday, February 15, 2013 2:47 PMP.S. the heavy lifting here is courtesy of Robert Pearman.
Kudos and attaboys should go to him btw.- Edited by Susan BradleyMVP Friday, February 15, 2013 2:47 PM
-
Monday, February 18, 2013 3:23 PM
It does sound like your issue is slightly different to this.
If this does not fix it, can you download ProcessMonitor.
Run ProcessMonitor whilst generating a report - then as soon as that is finished, tell ProcessMonitor to stop collecting results (otherwise you will be buried under the output)
Then we can start filtering the output to only show us relevant info.
From this we may be able to find the config file, and then from that work out why it is failing.
(may be quicker than waiting for a bug fix)
Robert Pearman SBS MVP
itauthority.co.uk |
Title(Required)
Facebook |
Twitter |
Linked in |
Google+
No strange characters in Company Name - it's just "Indigo Press". I just posted to say I'll run process monitor and get the logs posted, but I just tried to trigger this issue and the report generated fine with all sections enabled - I can only guess the relevant log entry has been archived from the log, or is now old enough to not get included in the report.
Cheers all for comments and help - if I can persuede it to happen again I'll post ProcessMonitor logs here.
- Edited by BlueCompute Monday, February 18, 2013 3:31 PM

