gdy tworzę nowy projekt Azure webjob widziałam sekcję connectionString w app.config
sekcji jak poniżej:Czy mogę uruchamiać webjobs Azure bez połączenia z 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>
w moim Funkcje webjob im tylko interakcji z mojej aplikacji db.
- So Do i really need to create two more databases for azure webjobs ?
Kiedy biegnę webjobs z visual studio dostaję poniższy błąd:
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()
A kiedy próbuję webjobs dostępu log pokazuje: WebJob Szczegóły 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 domyślam się, że to z powodu braku odpowiedniego ciągu połączenia z bazą danych.
- What could be the possible connection between above two errors ?
Użycie pamięci podręcznej dla dzienników nie powinno być wymagane. Mam zadania sieciowe, które tego nie robią. –
Oba ciągi połączeń nie są wymagane? @MattfromStackify – ManirajSS