Azure Webjob error with exit code -1073740940

I wrote a C # console application that I deployed to Azure Webjob. The application works fine locally, but on Azure I get an error:

[09/16/2015 10:40:35 > 998fb8: SYS ERR ] Job failed due to exit code -1073740940 

I think I tracked it down to accessing the certificate file. I added it to Resource.resx in the project properties and I get access to the certificate with the following (also a line in which it does not work)

 X509Certificate2 _certificate = new X509Certificate2(echoService.Properties.Resources.public_privatekey, ConfigurationManager.AppSettings["certPsw"]); 

Is this right, or is there a better way. I tried using the relative path in AppSettings, but could not with this either.

As an additional note, I added a password to the text text in AppSettings, but it will be better to deal with this when my concept is proved. Is there a discussion on how to store passwords like this, and should a certificate be created without a password?

+5
source share
1 answer

I found that Azure is copying files to a temporary location to bypass file locking for continuous operation. Apparently resource files are not copied with it.

However, for certificates, I can reference them using the following tutorial, and now everything works http://azure.microsoft.com/en-us/blog/using-certificates-in-azure-websites-applications/

+3
source

All Articles