Azure WebJob在退出代码532462766上失败

编程入门 行业动态 更新时间:2024-10-24 00:33:08
本文介绍了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上失败

本文发布于:2023-11-16 22:10:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607672.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:代码   Azure   WebJob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!