tag:help.appveyor.com,2012-11-13:/discussions/problems/20582-deployps1-script-exited-with-code-1073741502AppVeyor: Discussion 2019-02-21T07:45:35Ztag:help.appveyor.com,2012-11-13:Comment/469814562019-02-20T19:06:02Z2019-02-20T19:06:02Zdeploy.ps1 -> Script exited with code -1073741502<div><p>To investigate, I would first replace it with some super-simple "hello world" script and ensure it is executed OK. Then added some tracing into the existing script to determine which step actually fails, for example print which step is going to be executed and environment variable values.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/469814562019-02-20T19:17:55Z2019-02-20T19:17:55Zdeploy.ps1 -> Script exited with code -1073741502<div><p>Hi Ilya,</p>
<p>I have replaced the file with a simple script with a single write-host<br>
statement...<br>
error still occurres.</p>
<p>Even though I have set the agent logging to verbose I cannot identify the<br>
issue.<br>
I think this could be related to permissions... can I enable more verbose<br>
logging?</p>
<p>ons. 20. feb. 2019 kl. 20.06 skrev Ilya Finkelshteyn <<br>
<a href="mailto:tender2+db8c3b301f@tenderapp.com">tender2+db8c3b301f@tenderapp.com</a>>:</p></div>kristiantag:help.appveyor.com,2012-11-13:Comment/469814562019-02-20T21:51:06Z2019-02-20T21:51:06Zdeploy.ps1 -> Script exited with code -1073741502<div><p>Just to clarify -- you change logging verbosity level at <code>%ProgramFiles%\AppVeyor\DeploymentAgent\Appveyor.DeploymentAgent.Service.exe.config</code>? And looking to events at `Applications and Services Logs > AppVeyor'?</p>
<p>Also what account AppVeyor Deployment agent service log on with (you can check in with a "Services" mmc snap-in)?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/469814562019-02-21T07:45:34Z2019-02-21T07:45:34Zdeploy.ps1 -> Script exited with code -1073741502<div><p>Hi Ilya,</p>
<p>Yes - thats where im looking for logs. The only events logged are:</p>
<pre>
<code><Data>Deployment job finished: pybxy01hqpguj35b</Data>
<Data>Deployment job pybxy01hqpguj35b error: Script exited with code</code>
</pre>
<p>-1073741502 Looking for deploy.ps1 at C:\Struct\PIMSource\update deploy\PIM.Website\deploy.ps1</p>
<p>The account is running as "Local System".<br>
However - im experiencing issues when trying to uninstall the agent.</p>
<p>Apart from that, when trying to update the agent the following issue<br>
occurs:<br>
[image: 2019-02-21 08_43_36-pimpartner.com - Remote Desktop Connection Manager v2.7.png]</p>
<p>Med venlig hilsen,</p>
<p>Kristian Andersen<br>
Tlf: +45 2927 3937 | Mail: <a href="mailto:kristian@struct.dk">kristian@struct.dk</a></p>
<p>Struct A/S<br>
<a href="http://www.struct.dk">www.struct.dk</a></p>
<p>Den ons. 20. feb. 2019 kl. 22.51 skrev Ilya Finkelshteyn <<br>
<a href="mailto:tender2+db8c3b301f@tenderapp.com">tender2+db8c3b301f@tenderapp.com</a>>:</p></div>kristian