Azure WebJob在退出代码532462766上失败 [英] Azure WebJob fails on exit code 532462766

查看:133
本文介绍了Azure WebJob在退出代码532462766上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个控制台应用程序,该应用程序将新数据加载到数据库中,并将其转换为在凌晨2点运行的Web作业,因此存储的数据每天都会更新.控制台应用程序在本地运行良好,并且正在使用Azure SQL数据库.运行webjob时失败,并显示以下消息:

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]作业因退出代码-532462766而失败

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

通过一些研究,似乎webjob没有我的app.config文件,因此缺少正确的连接字符串,但是我不确定.有谁知道如何解决这个问题?我是将连接字符串添加到.pubxml文件中,还是在Azure门户中添加它,还是其他呢?谢谢!

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!

推荐答案

web.config是一个奇怪的选择,但我想webjob会退回去.您还可以通过复制 programname .exe.config文件和exe本身来解决此问题.

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.

这篇关于Azure WebJob在退出代码532462766上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆