AcUtils
A high performance abstraction layer for AccuRev
Network diagnostics logging

This version of server_post_promote.exe.config was used to help troubleshoot a Cisco defect that impacted email sent from programs running without a local Message Transfer Agent installed, e.g. IIS/SMTP pointing to relays with a queue that would try to resend. The workaround was to temporarily change the SMTP server to one that experienced the problem less often until the hotfix was applied.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="activeDir" type="AcUtils.ADSection, AcUtils, Version=1.6.4.0, Culture=neutral, PublicKeyToken=26470c2daf5c2e2f, processorArchitecture=MSIL"/>
</configSections>
<activeDir>
<domains>
<add name="OMITTED1" server="mock1.abccorp.com" />
<add name="OMITTED2" server="mock2.xyzcorp.com" />
</domains>
</activeDir>
<appSettings>
<add key="IncludeOvrAboveTimeBasis" value="false" />
<add key="SMTPServer" value="omitted.xyzcorp.com" />
<add key="SMTPPort" value="25" />
<add key="MailFrom" value="buildAccnt@YourCompany.com" />
<add key="CcOnOverlap" value="UAT@YourCompany.com; Support@YourCompany.com" />
<add key="ParamFileCopy" value="NoParamFileCopy" />
</appSettings>
<system.diagnostics>
<assert assertuienabled="false"/>
<sources>
<source name="server_post_promote">
<listeners>
<remove name="Default" />
<add name="AcLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</listeners>
</source>
<source name="System.Net">
<listeners>
<add name="System.Net"/>
</listeners>
</source>
<source name="System.Net.Sockets">
<listeners>
<add name="System.Net"/>
</listeners>
</source>
<source name="System.Net.Cache">
<listeners>
<add name="System.Net"/>
</listeners>
</source>
</sources>
<switches>
<add name="System.Net" value="Verbose"/>
<add name="System.Net.Sockets" value="Verbose"/>
<add name="System.Net.Cache" value="Verbose"/>
</switches>
<sharedListeners>
<add name="System.Net" type="System.Diagnostics.TextWriterTraceListener" initializeData="network.log" traceOutputOptions="DateTime" />
</sharedListeners>
<trace autoflush="true"/>
</system.diagnostics>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
server_post_promote weekly log file
...
7/17/2014 5:25:17 PM
Exception caught and logged in Email.send
Insufficient system storage. The server response was: #4.3.1 queue full
...
network.log in same folder as executable
The date format is in UTC time zone, so it will not change irrespective of user's or server's culture or time zone.
...
System.Net.Sockets Verbose: 0 : [5144] Socket#32854180::Send()
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] Data from Socket#32854180::Send
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] 00000000 : 4D 41 49 4C 20 46 52 4F-4D 3A 3C 73 2D 61 63 63 : MAIL FROM:<s-acc
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] 00000010 : 75 62 72 69 64 67 65 40-56 65 72 69 7A 6F 6E 57 : ubridge@VerizonW
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] 00000020 : 69 72 65 6C 65 73 73 2E-63 6F 6D 3E 0D 0A       : ireless.com>..
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] Exiting Socket#32854180::Send()             -> 46#46
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] Socket#32854180::Receive()
    DateTime=2014-07-17T21:25:16.4623217Z
System.Net.Sockets Verbose: 0 : [5144] Data from Socket#32854180::Receive
    DateTime=2014-07-17T21:25:17.5716967Z
System.Net.Sockets Verbose: 0 : [5144] 00000000 : 34 35 32 20 23 34 2E 33-2E 31 20 71 75 65 75 65 : 452 #4.3.1 queue
    DateTime=2014-07-17T21:25:17.5716967Z
System.Net.Sockets Verbose: 0 : [5144] 00000010 : 20 66 75 6C 6C 0D 0A                            :  full..
    DateTime=2014-07-17T21:25:17.5716967Z
System.Net.Sockets Verbose: 0 : [5144] Exiting Socket#32854180::Receive()        -> 23#23
    DateTime=2014-07-17T21:25:17.5716967Z
System.Net Error: 0 : [5144] Exception in the SmtpClient#12289376::Send - Insufficient system storage. The server response was: #4.3.1 queue full
    DateTime=2014-07-17T21:25:17.6029467Z
System.Net Error: 0 : [5144]    at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
    DateTime=2014-07-17T21:25:17.8841967Z
System.Net.Sockets Verbose: 0 : [5144] Socket#32854180::Dispose()
    DateTime=2014-07-17T21:25:17.8841967Z
...