Azure WebJob fails on exit code 532462766

人盡茶涼 提交于 2019-12-13 09:25:38

问题


I am taking a console app I have that loads new data into a database, and am turning it into a web job that runs at 2am so the stored data is updated daily. The console app works fine locally and is using an Azure SQL database. When running the webjob it fails with this message:

[09/22/2016 20:25:39 > 44575f: SYS ERR ] Job failed due to exit code -532462766

Through some research it looks like the webjob doesn't have my app.config file and thus is missing the correct connection string, but I'm not sure. Does anyone know how to get around this? Do I add a connection string to my .pubxml file, do it in my Azure portal, or could this be something else? Thanks!


回答1:


web.config is a strange choice but I guess webjob falls back to it. You could also fix the problem by copying the programname.exe.config file along with the exe itself.



来源:https://stackoverflow.com/questions/39648501/azure-webjob-fails-on-exit-code-532462766

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!