<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.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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 new application that uses QuickFix/n on a dedicated Windows server 2012 as a scheduled task to run every morning at 4:00 a.m. We have been previously testing the app on that server not as a scheduled task (double-clicking
on the .exe) and it has been working fine. We set up the task to run using a service account and we configured the task scheduler to run the task whether the user is logged on our not. We also had to modify a security policy on the server to allow the service
account to log on as a batch service. The task scheduler runs the app as scheduled but the problem we are having is that the task runs when no one is logged on to the server and is not able to connect to our third-party ICE). When I log on to the server later
in the morning the app is still running (as it should). At the moment I log on the app is then able to connect to ICE and start processing information. QuickFix logging is turned on 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. The IP 172.19.133.178 is the server’s IP. As long as I am logged on to the server our QuickFix/n app works fine. We also are using sTunnel to encrypt
the data. sTunnel is set up on the same server. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">20141017-11:01:30.885 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:30.901 : Session reset: New session<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:30.901 : Created session<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:31.807 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:33.839 : 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">20141017-11:01:39.917 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:40.917 : 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">20141017-11:01:46.011 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:47.042 : 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">20141017-11:01:52.105 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141017-11:01:53.120 : 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">20141017-14:36:59.112 : 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">20141017-14:37:04.190 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal">20141017-14:37:08.347 : Connection succeeded<o:p></o:p></p>
<p class="MsoNormal">20141017-14:37:11.097 : Session reset: ResetOnLogon<o:p></o:p></p>
<p class="MsoNormal">20141017-14:37:13.550 : Session reset: ResetSeqNumFlag<o:p></o:p></p>
<p class="MsoNormal">20141017-14:37:13.565 : Initiated logon request<o:p></o:p></p>
<p class="MsoNormal">20141017-14:37:14.894 : 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"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<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"><span style="color:#1F497D"><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><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>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>