Quando creo nuovo progetto webjob Azure ho potuto vedere la sezione connectionstring in app.config
sezione come di seguito:Posso eseguire webjobs di Azure senza connectiontring di AzureWebJobsStorage?
<connectionStrings>
<!-- The format of the connection string is "DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY" -->
<!-- For local execution, the value can be set either in this config file or through environment variables -->
<add name="AzureWebJobsDashboard" connectionString="" />
<add name="AzureWebJobsStorage" connectionString="" />
</connectionStrings>
nelle mie funzioni webjob im interagire solo con la mia domanda db.
- So Do i really need to create two more databases for azure webjobs ?
quando corro webjobs da Visual Studio Sto ottenendo il seguente errore:
Application: WebJobTest.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException Stack: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.Azure.WebJobs.JobHost.Call(System.Reflection.MethodInfo, System.Object) at WebJobTest.Program.Main()
e quando provo webjobs Log di accesso mostra: WebJob Dettagli WebJobTest
Make sure that you are setting a connection string named AzureWebJobsDashboard in your Microsoft Azure Website configuration by using the following format DefaultEndpointsProtocol=https;AccountName=NAME;AccountKey=KEY pointing to the Microsoft Azure Storage account where the Microsoft Azure WebJobs Runtime logs are stored.
I Immagino che questo sia dovuto al fatto di non avere una corretta stringa di connessione al database.
- What could be the possible connection between above two errors ?
Non è necessario utilizzare la memoria blu per i registri. Ho dei lavori web che non lo fanno. –
Non sono richieste entrambe le stringhe di connessione? @MattfromStackify – ManirajSS