Wenn ich schaff' neues Projekt Zu webjob i wie unten die Connection Abschnitt in app.config
Abschnitt sehen konnte:Kann ich Azure-Webjobs ohne AzureWebJobsStorage Connectionstring ausführen?
<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>
in meiner webjob Funktion im nur mit meiner Anwendung db interagieren.
- So Do i really need to create two more databases for azure webjobs ?
Wenn ich laufe webjobs von Visual Studio, ich bin die folgenden Fehler bekommen:
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()
Und wenn ich Zugriff webjobs versuchen einzuloggen es zeigt: WebJob Einzelheiten 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 Das liegt daran, dass die Datenbankverbindungszeichenfolge nicht korrekt ist.
- What could be the possible connection between above two errors ?
Die Verwendung von Azurspeicher für Protokolle sollte nicht erforderlich sein. Ich habe Web-Jobs, die das nicht tun. –
Beide Verbindungsstrings nicht benötigt? @MattfromStackify – ManirajSS