<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Futura Bk";
        panose-1:2 11 5 2 2 2 4 2 3 3;}
@font-face
        {font-family:"Futura Hv";
        panose-1:2 11 7 2 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">We set up our internal application using QuickFix/n on a server as a scheduled task to run every morning at 4:00 a.m. Our app also utilizes sTunnel for data encryption. The task runs using a service account and we configured the task scheduler
 to run whether the user is logged on our not. The problem we are having is that the task runs when no one is logged on to the server but is not able to connect to our third-party. We implemented logging and the log is showing that the target machine (which
 is the server) is refusing the connection when our QuickFix app tries to connect. This will occur over and over. See log excerpt below.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">20141016-11:01:01.027 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:01.199 : Session reset: New session<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:01.199 : Created session<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:01.574 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:02.933 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:09.699 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141016-11:01:10.714 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I logged on to the server this morning to check the task the logs show that the already running app will then successfully connect and work. See log excerpt below.  Also if I kick off the task myself and stay logged on to the machine
 (with different logon credentials) the app will connect and work just fine.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">20141016-14:38:03.662 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:04.677 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:09.802 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:09.912 : Connection succeeded<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:11.990 : Session reset: ResetOnLogon<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:13.943 : Session reset: ResetSeqNumFlag<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:14.115 : Initiated logon request<o:p></o:p></p>
<p class="MsoNormal">20141016-14:38:15.068 : Received logon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any help would be appreciated. <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">CURT RETTENMIER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Information Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Avista Utilities<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">HP Enterprise Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Telephone</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> +1 509.495.8492<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Email</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">
<a href="mailto:curt.rettenmier@avistacorp.com"><span style="color:#595959">curt.rettenmier@avistacorp.com</span></a></span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:blue">
</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">  <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">MSC - 28<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">1411 E. Mission, Spokane, WA 99202<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Futura Bk","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><img border="0" width="35" height="17" id="Picture_x0020_1" src="cid:image001.png@01CFE91A.77BD7440" alt="Description: cid:image001.png@01CD29CD.B57A0640"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation.</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">
 Any unauthorized use, transfer, or disclosure of the information contained herein is strictly forbidden. If you believe that this message has been sent to you in error, please reply to the sender that you have received the message in error and delete the message.</span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>