Azure WebJob Failed to execute exit code -1073741818

I deployed Azure WebJob to an existing Azure website using Visual Studio, the very useful Publish as Web Application.

The package works fine locally, but when it hits the cloud, it doesn't even reach the first line of code (which is the log statement), and I get the following message:

[04/25/2015 19:35:44 > 287dbc: SYS INFO] Status changed to Initializing [04/25/2015 19:35:45 > 287dbc: SYS INFO] Run script 'MyJob.exe' with script host - 'WindowsScriptHost' [04/25/2015 19:35:45 > 287dbc: SYS INFO] Status changed to Running [04/25/2015 19:35:45 > 287dbc: SYS INFO] Status changed to Failed [04/25/2015 19:35:45 > 287dbc: SYS ERR ] Job failed due to exit code -1073741818 

I also tried to copy the contents of the package manually via FTP, and I get the same.

Has anyone ever come across this? How did you fix this?

+6
source share
2 answers

I have encountered similar before. this is due to unintended exceptions that are thrown on your first lines in the program.cs file. try putting your entire host configuration in a try and catch the exception and check the thrown exception through the logs.

0
source

Please try to deploy webjob through visual studio. Steps:

  1. right click on webjob project
  2. publish on azure
  3. select service name
  4. click on the publish button

I also encounter the same problem if I try to deploy a webjob in azure.portal. Add your subscription to visual studio and follow the instructions above.

-1
source

Source: https://habr.com/ru/post/985967/


All Articles