tag:support.appharbor.com,2010-11-23:/discussions/problems/105385-working-example-of-net-core-console-app-running-as-background-workerAppHarbor: Discussion 2020-10-02T12:54:55Ztag:support.appharbor.com,2010-11-23:Comment/477811662019-10-29T20:51:31Z2019-10-29T20:51:31ZWorking example of .NET Core console app running as background worker<div><p>Hello,</p>
<p>As title says, does anybody could share some bare bone example that actually works (loop that just outputs to console)? Preferably with multiple projects referenced from main one.</p>
<p>I tried to follow some suggestions I found here and modify my own project, but nothing worked. While I didn't get any compilation error, it never runs. Seems that I'm missing something obvious, because it looks that some people here successfully deployed them.</p>
<p>I tried following:<br>
<a href="https://support.appharbor.com/discussions/problems/94358-are-net-core-console-apps-supported">https://support.appharbor.com/discussions/problems/94358-are-net-co...</a><br>
<a href="https://support.appharbor.com/discussions/problems/92062-support-for-net-core-20">https://support.appharbor.com/discussions/problems/92062-support-fo...</a></p>
<p>The only success I had was running standard .NET framework :(</p></div>BamfBamfCompanytag:support.appharbor.com,2010-11-23:Comment/477811662019-10-29T21:56:48Z2019-10-30T11:14:28ZWorking example of .NET Core console app running as background worker<div><p>OK. You may want to wait with any answers. I just managed to make bare bone project running.</p>
<p>But I'm getting this error once in a while:<br></p>
<pre>
<code>app worker.1 ProcessManager: Started "apphost.exe"
app worker.1 apphost.exe: This executable is not bound to a managed DLL to execute. The binding value is: 'c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2'
app worker.1 apphost.exe: A fatal error was encountered. This executable was not bound to load a managed DLL.
app worker.1 apphost.exe:
app worker.1 apphost.exe:
app worker.1 ProcessManager: Process "apphost.exe" was terminated with exit code "-2147450731"
app worker.1 ProcessManager: Restarting 'apphost.exe' in 160 seconds</code>
</pre>
But main <code>.exe</code> process is running OK. So it seems that's some additional <code>.exe</code> that is produced.</div>BamfBamfCompany